Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
carrieedwards committed Jan 4, 2024
1 parent a7af8ec commit 4e9969f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tsdb/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5568,12 +5568,13 @@ func test_ChunkQuerier_OOOQuery(t *testing.T,
}
}

// This test verifies the counter reset headers for in-order and out-of-order samples upon storage.
// This test verifies the counter reset headers for in-order and out-of-order samples upon ingestion.
// Note that when the counter reset(s) occur in OOO samples, the header is set to UnknownCounterReset
// rather than CounterReset. This is because with OOO samples, it cannot be definitely determined in a
// counter reset occurred because the samples are not consecutive, and another sample could potentially
// come in that would change the status of the header. In this case, the UnknownCounterReset headers will
// be re-checked at query time and updated.
// rather than CounterReset. This is because with OOO native histogram samples, it cannot be definitely
// determined if a counter reset occurred because the samples are not consecutive, and another sample
// could potentially come in that would change the status of the header. In this case, the UnknownCounterReset
// headers would be re-checked at query time and updated as needed. However, this test is checking the counter
// reset headers at the time of storage.
func TestOOONativeHistogramsWithCounterResets(t *testing.T) {
for name, scenario := range sampleTypeScenarios {
t.Run(name, func(t *testing.T) {
Expand Down

0 comments on commit 4e9969f

Please sign in to comment.