Configure the test so that a single checkpoint is created, otherwise
the time-based closing code may split the data over more than 1
checkpoint causing the final data checks to fail.
Change-Id: I449a80d775b8d21afd9b46387a432dce7dcec2d1
Reviewed-on: http://review.couchbase.org/70350
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
const int n_items = 1000;
// configure so we can store a large number of items
+ // configure with 1 checkpoint to ensure the time-based closing
+ // does not split the items over many checkpoints and muddy the final
+ // data checks.
checkpoint_config = CheckpointConfig(DEFAULT_CHECKPOINT_PERIOD,
n_threads*n_items,
- /*numCheckpoints*/2,
+ /*numCheckpoints*/1,
/*itemBased*/true,
/*keepClosed*/false,
/*enableMerge*/false);