Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
rgw/sfs: testing: TestSFSWALCheckpoint: drop explosion test to 300MB
Browse files Browse the repository at this point in the history
Since adding storage_pool, the WAL doesn't explode quite as much as
it used to with 10 threads and 1000 objects each (previously with
multiple unpooled connections it'd reliably go over 500MB, but I've
just seen a unit test where it "only" got to ~450MB, so let's drop
the value we test against a bit such that we still confirm the
problem, but have more wiggle room).

Signed-off-by: Tim Serong <[email protected]>
  • Loading branch information
tserong committed Oct 25, 2023
1 parent 1e5aa11 commit 6c7d871
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/rgw/sfs/test_rgw_sfs_wal_checkpoint.cc
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ TEST_F(TestSFSWALCheckpoint, confirm_wal_explosion) {

// Using the SQLite default checkpointing mechanism with
// 10 concurrent writer threads will easily push us past
// 500MB quite quickly.
// a few hundred megabytes quite quickly.
std::uintmax_t max_wal_size = multithread_object_create(10, 1000);
EXPECT_GT(max_wal_size, SIZE_1MB * 500);
EXPECT_GT(max_wal_size, SIZE_1MB * 300);

// The fact that we have no size limit set means the WAL
// won't be truncated even when the last writer completes,
Expand Down

0 comments on commit 6c7d871

Please sign in to comment.