You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In ChunkInfo for a ReadWriteChunk, we initialize dataEndTimeEpochMs to a high sentinel value so that the first message's end time will always become the first end time, and then it can expand upward from there if any messages come in later with later timestamps.
However, we initialize dataStartTimeEpochMs to the chunk creation time, and it can then shrink earlier if any messages with earlier timestamps come in. This will lead to incorrect values if no message comes in with a timestamp earlier than or equal to the chunk creation time.
This doesn't seem to affect correctness, but it means that we may examine a chunk unnecessarily during search. Instead, the start time should be initialized to a low sentinel value so that the start time of the first message is always used.
The text was updated successfully, but these errors were encountered:
In ChunkInfo for a ReadWriteChunk, we initialize dataEndTimeEpochMs to a high sentinel value so that the first message's end time will always become the first end time, and then it can expand upward from there if any messages come in later with later timestamps.
However, we initialize dataStartTimeEpochMs to the chunk creation time, and it can then shrink earlier if any messages with earlier timestamps come in. This will lead to incorrect values if no message comes in with a timestamp earlier than or equal to the chunk creation time.
This doesn't seem to affect correctness, but it means that we may examine a chunk unnecessarily during search. Instead, the start time should be initialized to a low sentinel value so that the start time of the first message is always used.
The text was updated successfully, but these errors were encountered: