xichen2020 / eventdb

Storage for discrete events such as log events or tracing events
Apache License 2.0
9 stars 1 forks source link

Iterator count mismatch for time bucket queries when data is loaded from disk #148

Closed black-adder closed 5 years ago

black-adder commented 5 years ago

Running a simple time bucket query like: {"namespace":"service","start_time":1551296381,"end_time":1551297381,"time_unit":"1s","time_granularity":"1m"} will fail if none of the segments are in memory with the following error:

error performing time bucket query {service 1551293338000000000 1551294438000000000 1m0s [] map[12889413958949747480:{[@timestamp] map[0:map[time:{}]]}]} against database namespace service: error iterating over timestamp data: doc ID iterator and the position iterator iterator count mismatch"}

If you run the query against data in memory, the query succeeds.

notbdu commented 5 years ago

This is similar to what I saw in a poorly named issue: #144. A fix is out in PR #142.