Skip to content

Commit

Permalink
CBQE-2335: add warmup + fulleviction test
Browse files Browse the repository at this point in the history
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
IrynaMironava authored and Ketaki Gangal committed Jul 18, 2014
1 parent af338ae commit d59fc75
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions conf/py-eviction.conf
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ eviction.evictionkv.EvictionKV:
test_update_ejected_expiry_time,dgm_run=True,eviction_policy=fullEviction test_update_ejected_expiry_time,dgm_run=True,eviction_policy=fullEviction
eviction.eviction_change_policy.EvictionChangePolicy: eviction.eviction_change_policy.EvictionChangePolicy:
test_reproducer_MB_11698,nodes_init=3,items=10000,eviction_policy=fullEviction 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


18 changes: 18 additions & 0 deletions pytests/eviction/eviction_change_policy.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -27,3 +27,21 @@ def test_reproducer_MB_11698(self):
self._load_all_buckets(self.master, gen_create2, "create", 0) 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._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]) 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.