Skip to content

Commit

Permalink
feat: port influxd inspect report-tsi to 2.x (influxdata#21788)
Browse files Browse the repository at this point in the history
* feat: port influxd inspect report-tsi

* chore: restored tsi1.IsIndexDir() functionality

* refactor: changed inspect report-tsi to work with 2.x file system structure

* chore: fixed output tab alignment

* chore: ran make fmt

* chore: ran make fmt on changed file after resolving merge conflicts

* refactor: made changes based on code review

* refactor: avoiding defer build-up in loop

* refactor: replaced path with filepath and added shardIdx closures

* chore: updated changelog

* refactor: handled shardIdx closures in error case

Co-authored-by: Michelle McFarland <[email protected]>
  • Loading branch information
mcfarlm3 and Michelle McFarland authored Jul 19, 2021
1 parent c8de72d commit 5d8c0b4
Show file tree
Hide file tree
Showing 3 changed files with 461 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ This release adds an embedded SQLite database for storing metadata required by t
1. [21615](https://github.com/influxdata/influxdb/pull/21615): Ported the `influxd inspect verify-tsm` command from 1.x.
1. [21646](https://github.com/influxdata/influxdb/pull/21646): Ported the `influxd inspect verify-tombstone` command from 1.x.
1. [21761](https://github.com/influxdata/influxdb/pull/21761): Ported the `influxd inspect dump-tsm` command from 1.x.
1. [21788](https://github.com/influxdata/influxdb/pull/21788): Ported the `influxd inspect report-tsi` command from 1.x.
1. [21784](https://github.com/influxdata/influxdb/pull/21784): Ported the `influxd inspect dumptsi` command from 1.x.
1. [21786](https://github.com/influxdata/influxdb/pull/21786): Ported the `influxd inspect deletetsm` command from 1.x.
1. [21802](https://github.com/influxdata/influxdb/pull/21802): Removed unused `chronograf-migator` package & chronograf API service, and updated various "chronograf" references.
Expand Down
2 changes: 2 additions & 0 deletions cmd/influxd/inspect/inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"github.com/influxdata/influxdb/v2/cmd/influxd/inspect/dump_tsm"
"github.com/influxdata/influxdb/v2/cmd/influxd/inspect/export_index"
"github.com/influxdata/influxdb/v2/cmd/influxd/inspect/export_lp"
"github.com/influxdata/influxdb/v2/cmd/influxd/inspect/report_tsi"
"github.com/influxdata/influxdb/v2/cmd/influxd/inspect/verify_seriesfile"
"github.com/influxdata/influxdb/v2/cmd/influxd/inspect/verify_tombstone"
"github.com/influxdata/influxdb/v2/cmd/influxd/inspect/verify_tsm"
Expand All @@ -30,6 +31,7 @@ func NewCommand(v *viper.Viper) (*cobra.Command, error) {
return nil, err
}
base.AddCommand(exportLp)
base.AddCommand(report_tsi.NewReportTSICommand())
base.AddCommand(export_index.NewExportIndexCommand())
base.AddCommand(verify_tsm.NewTSMVerifyCommand())
base.AddCommand(verify_seriesfile.NewVerifySeriesfileCommand())
Expand Down
Loading

0 comments on commit 5d8c0b4

Please sign in to comment.