MB-23796: Wait for flusher to avoid stat race 48/76548/2
authorolivermd <oliver.downard@couchbase.com>
Mon, 10 Apr 2017 11:52:44 +0000 (12:52 +0100)
committerDave Rigby <daver@couchbase.com>
Mon, 10 Apr 2017 16:18:47 +0000 (16:18 +0000)
commit5dd156b38da304a8fc453a875f7f6ad1f9515ec7
tree2cf068410fb30c21836ccfd1e8a14b5181f1334c
parent2d836d230460127ccfd3667ba6f31913da08896f
MB-23796: Wait for flusher to avoid stat race

Under full eviction, the stat used for curr items is different to that
used under value eviction. Aditionally, under full eviction, the flusher
updates the relevant stat. This can lead to a race in the test between
the flusher and the test code. For example to test code to get the stats
may run before the flusher can, meaning that the previous operation is
not reflected in the stats, leading to the test failing a check.

Change-Id: I3ae6617fec0e0d076438bd839feaaea7633e23fd
Reviewed-on: http://review.couchbase.org/76548
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>
tests/ep_testsuite.cc