-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
panic: interface conversion: tsm1.Value is *tsm1.StringValue, not *tsm1.FloatValue #6652
Comments
This was referenced May 17, 2016
Merged
This does not appear to occur on jw-compact-fix, latest 0b25541 |
Fixed via #6653 |
@jwilder Hi, seems this panic was not fixed completely, I'm running InfluxDB 1.0.2, the seem issue occured again: panic: interface conversion: tsm1.Value is *tsm1.FloatValue, not *tsm1.IntegerValue
goroutine 510 [running]:
panic(0xbaefa0, 0xc82a9b2400)
/usr/local/go/src/runtime/panic.go:481 +0x3e6
github.com/influxdata/influxdb/tsdb/engine/tsm1.encodeIntegerBlock(0x0, 0x0, 0x0, 0xc8393ed200, 0x5, 0x8, 0x0, 0x0, 0x0, 0x0, ...)
/root/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/encoding.go:427 +0x72b
github.com/influxdata/influxdb/tsdb/engine/tsm1.Values.Encode(0xc8393ed200, 0x5, 0x8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/root/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/encoding.go:78 +0x22c
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*cacheKeyIterator).Read(0xc83949c8f0, 0x0, 0x0, 0x14853e7f80939400, 0x14853e9220f2b400, 0x0, 0x0, 0x0, 0x0, 0x0)
/root/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/compact.go:1266 +0x321
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Compactor).write(0xc82049a180, 0xc8e44cc870, 0x46, 0x7f709c14b2e0, 0xc83949c8f0, 0x0, 0x0)
/root/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/compact.go:731 +0x4ab
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Compactor).writeNewFiles(0xc82049a180, 0x7a, 0x1, 0x7f709c14b2e0, 0xc83949c8f0, 0x0, 0x0, 0x0, 0x0, 0x0)
/root/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/compact.go:672 +0x3a1
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Compactor).WriteSnapshot(0xc82049a180, 0xc82cb2c700, 0x0, 0x0, 0x0, 0x0, 0x0)
/root/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/compact.go:533 +0x174
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).writeSnapshotAndCommit(0xc8204041c0, 0xc8cab8a000, 0xe5, 0x100, 0xc82cb2c700, 0x0, 0x0)
/root/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:776 +0xab
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).WriteSnapshot(0xc8204041c0, 0x0, 0x0)
/root/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:751 +0x306
github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).compactCache(0xc8204041c0)
/root/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:814 +0x25d
created by github.com/influxdata/influxdb/tsdb/engine/tsm1.(*Engine).SetCompactionsEnabled
/root/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/engine.go:166 +0x13f does #7533 can fix it completely? Before this bug fixed, what should I do to avoid this panic? |
@jwilder Thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This panic can occur during compactions between series with different field types. It was introduced in d99c5e2.
The text was updated successfully, but these errors were encountered: