-
Notifications
You must be signed in to change notification settings - Fork 288
Description
From @akavel on July 3, 2018 12:1
System info: [Include InfluxDB version, operating system name, and other relevant details]
influxdb 1.5.4
Steps to reproduce:
$ docker run --name mytest -d influxdb:1.5.4
cb4256853c00c6f389af44fb3a27ce09fe72f8c02f7a2a39b986b0a90839549f
$ docker exec mytest influx_inspect report -help
Displays shard level report.
Usage: influx_inspect report [flags]
-pattern <pattern>
Include only files matching a pattern.
-exact
Report exact cardinality counts instead of estimates. Note: this can use a lot of memory.
Defaults to "false".
-detailed
Report detailed cardinality estimates.
Defaults to "false".
$ docker exec mytest influx_inspect report
report: lstat : no such file or directoryExpected behavior: [What you expected to happen]
Some info about existing database contents, showing me whether I use TSM or TSI. The --help contents for influx_inspect should explain how to actually use the command to get some correct result, possibly by showing example command line.
Actual behavior: [What actually happened]
Trying to use influx_inspect report fails with unintelligible error. Similarly for influx_inspect dumptsm, I have no idea how to actually use it after reading the --help. I tried running both of them with various options, but never managed to get any meaningful info.
Additional info: [Include gist of relevant config, logs, etc.]
The influxdb 1.5 upgrade guide only repeatedly says "use influx_inspect buildtsi"; but the docs for the tool are super sparse and cryptic. Anyway, I can't find out a way how to call influx_inspect to check whether I have TSM or TSI indexes before running the upgrade (buildtsi), and to verify whether the upgrade worked successfully after the upgrade. Without being able to check this, it doesn't make much sense to me to even attempt the upgrade, as I don't know how to check if the call succeeded.
Copied from original issue: influxdata/influxdb#10031