Permalink
Browse files

CBQE-2335: add warmup + fulleviction test

Change-Id: Ia9083986e432e9006a67a06d43711842f743661b
Reviewed-on: http://review.couchbase.org/39539
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Ketaki Gangal <ketakigangal@gmail.com>
  • Loading branch information...
1 parent af338ae commit d59fc75fc2a2e33f53ad8b23271a0cf36da7c213 @IrynaMironava IrynaMironava committed with ketakigangal Jul 18, 2014
Showing with 19 additions and 0 deletions.
  1. +1 −0 conf/py-eviction.conf
  2. +18 −0 pytests/eviction/eviction_change_policy.py
View
@@ -5,4 +5,5 @@ eviction.evictionkv.EvictionKV:
test_update_ejected_expiry_time,dgm_run=True,eviction_policy=fullEviction
eviction.eviction_change_policy.EvictionChangePolicy:
test_reproducer_MB_11698,nodes_init=3,items=10000,eviction_policy=fullEviction
+ test_warm_up_with_eviction,nodes_init=3,items=100000,eviction_policy=fullEviction
@@ -27,3 +27,21 @@ def test_reproducer_MB_11698(self):
self._load_all_buckets(self.master, gen_create2, "create", 0)
self._wait_for_stats_all_buckets(self.servers[:self.nodes_init], timeout=self.wait_timeout * 5)
self._verify_stats_all_buckets(self.servers[:self.nodes_init])
+
+ def test_warm_up_with_eviction(self):
+ gen_create = BlobGenerator('eviction', 'eviction-', self.value_size, end=self.num_items)
+ gen_create2 = BlobGenerator('eviction2', 'eviction2-', self.value_size, end=self.num_items)
+ self._load_all_buckets(self.master, gen_create, "create", 0)
+ self._wait_for_stats_all_buckets(self.servers[:self.nodes_init])
+ self._verify_stats_all_buckets(self.servers[:self.nodes_init])
+ self.timeout = self.wait_timeout
+ self.without_access_log = False
+ self._stats_befor_warmup(self.buckets[0])
+ self._restart_memcache(self.buckets[0])
+ ClusterOperationHelper.wait_for_ns_servers_or_assert(
+ self.servers[:self.nodes_init], self,
+ wait_time=self.wait_timeout, wait_if_warmup=True)
+ self.sleep(10, 'Wait some time before next load')
+ self._load_all_buckets(self.master, gen_create2, "create", 0)
+ self._wait_for_stats_all_buckets(self.servers[:self.nodes_init], timeout=self.wait_timeout * 5)
+ self._verify_stats_all_buckets(self.servers[:self.nodes_init])

0 comments on commit d59fc75

Please sign in to comment.