Skip to content

Commit

Permalink
Merge pull request #32388 from vespa-engine/toregge/relax-check-in-lo…
Browse files Browse the repository at this point in the history
…gdatastore-unit-test

Relax check in logdatastore unit test.
  • Loading branch information
toregge authored Sep 11, 2024
2 parents ed23942 + 54b1f68 commit 299af81
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,15 @@ void verifyGrowing(const LogDataStore::Config & config, uint32_t minFiles, uint3
EXPECT_GE(maxFiles, datastore.getAllActiveFiles().size());
}
}

TEST(LogDataStoreTest, testGrowingChunkedBySize)
{
LogDataStore::Config config;
config.setMaxFileSize(100000).setMaxBucketSpread(3.0).setMinFileSizeFactor(0.2)
.compactCompression({CompressionConfig::LZ4})
.setFileConfig({{CompressionConfig::ZSTD, 9, 60}, 1000});
verifyGrowing(config, 40, 120);
// Number of generated files depends on timing
verifyGrowing(config, 40, 265);
}

TEST(LogDataStoreTest, testGrowingChunkedByNumLids)
Expand Down

0 comments on commit 299af81

Please sign in to comment.