tsbs icon indicating copy to clipboard operation
tsbs copied to clipboard

tsbs_load_influx: while loading bulk will result in an error "panic: runtime error: index out of range [0] with length 0"

Open cocobond opened this issue 7 months ago • 1 comments

Input:

root@vm-239:/tsbs/tsbs/bin# ./tsbs_load_influx --file=vm_cpu_data_100_devices.bulk --urls="http://172.20.56.240:8086" panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]: main.(*dbCreator).listDatabases(0x4124c5?) /tsbs/tsbs/cmd/tsbs_load_influx/creator.go:64 +0x4a7 main.(*dbCreator).DBExists(0xe69c20?, {0x1177a90?, 0xc0003a6260?}) /tsbs/tsbs/cmd/tsbs_load_influx/creator.go:22 +0x17 github.com/timescale/tsbs/load.(*CommonBenchmarkRunner).useDBCreator(0xc0003886e0, {0x1177a90, 0xc0003a6260}) /tsbs/tsbs/load/loader.go:230 +0x129 github.com/timescale/tsbs/load.(*CommonBenchmarkRunner).preRun(0xc0003886e0, {0x11788c8, 0x1887f20}) /tsbs/tsbs/load/loader.go:128 +0x72 github.com/timescale/tsbs/load.(*CommonBenchmarkRunner).RunBenchmark(0xc0003886e0, {0x11788c8?, 0x1887f20}) /tsbs/tsbs/load/loader.go:184 +0x3f main.main() /tsbs/tsbs/cmd/tsbs_load_influx/main.go:120 +0x85

Summary

I think this is because TSBS is not compatible with the new version of influxdbv2.7, because I successfully loaded it in the old version of influxdbv1.8.10

It would be great if someone could solve the problem of influxdb version adaptation! At the same time, timescale also has similar problem.

cocobond avatar May 16 '25 05:05 cocobond

similar problem about timescale issue: https://github.com/timescale/tsbs/issues/274 Thankss!

cocobond avatar May 16 '25 05:05 cocobond