MB-21036: Fix intermittent failure in shutdown_snapshot_range 48/67948/6
authorDave Rigby <daver@couchbase.com>
Fri, 23 Sep 2016 16:52:52 +0000 (17:52 +0100)
committerDave Rigby <daver@couchbase.com>
Wed, 28 Sep 2016 07:30:36 +0000 (07:30 +0000)
Issue is that the test attempts to create exactly 3 checkpoints,
however this is load-dependent (i.e. how quickly the flusher runs and
creates checkpoints).

Remove this intermediate checks in the test, and just check the
sequence numbers.

Change-Id: Ic7c0a9217afcdc8bd65680efb992b09db0f5023b
Reviewed-on: http://review.couchbase.org/67948
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Manu Dhundi <manu@couchbase.com>
tests/ep_testsuite.cc

index 7714a86..e2f1ed0 100644 (file)
@@ -360,12 +360,8 @@ static enum test_result test_shutdown_snapshot_range(ENGINE_HANDLE *h,
     }
 
     wait_for_flusher_to_settle(h, h1);
-    verify_curr_items(h, h1, num_items, "Wrong amount of items");
     int end = get_int_stat(h, h1, "vb_0:high_seqno", "vbucket-seqno");
 
-    /* wait for a new open checkpoint with just chk start meta item */
-    wait_for_stat_to_be(h, h1, "vb_0:open_checkpoint_id", 3, "checkpoint");
-
     /* change vb state to replica before restarting (as it happens in graceful
        failover)*/
     check(set_vbucket_state(h, h1, 0, vbucket_state_replica),