Skip to content

Commit

Permalink
feat: missed a test when updating the variable! whoops!
Browse files Browse the repository at this point in the history
  • Loading branch information
devanbenz committed Dec 19, 2024
1 parent c93bdfb commit 2dd5ef4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tsdb/engine/tsm1/compact_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2822,11 +2822,8 @@ func TestDefaultPlanner_FullyCompacted_ManySingleGenLessThen2GBNotMaxAggrBlocks(

cp := tsm1.NewDefaultPlanner(fs, tsdb.DefaultCompactFullWriteColdDuration)

// 1048576000 is a magic number for bytes per gigabyte
reasonExp := fmt.Sprintf("not fully compacted and not idle because single generation with many files under %d GB and many files under aggressive compaction points per block count (%d points)", int(tsdb.MaxTSMFileSize/1048576000), tsdb.AggressiveMaxPointsPerBlock)

compacted, reason := cp.FullyCompacted()
require.Equal(t, reason, reasonExp, "fullyCompacted reason")
require.Equal(t, reason, tsdb.SingleGenerationReasonText, "fullyCompacted reason")
require.False(t, compacted, "is fully compacted")

_, cgLen := cp.PlanLevel(1)
Expand Down

0 comments on commit 2dd5ef4

Please sign in to comment.