Skip to content

Commit

Permalink
CBQE-1161: Fix incremental_rebalance_in_out_with_max_buckets_number
Browse files Browse the repository at this point in the history
no we have limitation in 10 buckets

Change-Id: Ib9ca73cc2f325b4b5c247301dc915b4e89dccbe6
Reviewed-on: http://review.couchbase.org/25539
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Andrei Baranouski <andrei.baranouski@gmail.com>
  • Loading branch information
andreibaranouski committed Apr 8, 2013
1 parent 34645ec commit a55ac76
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pytests/rebalance/rebalanceinout.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ def tearDown(self):
"""Rebalances nodes out and in of the cluster while doing mutations with max
number of buckets in the cluster.
This test begins by creating max number of buckets with bucket_size=100( by default):
This test begins by creating max number of buckets with bucket_size=100( by default).
no we have limitation in 10 buckets:
one default bucket, all other are sasl and standart buckets. Then we load
a given number of items into the cluster. It then removes two nodes,
rebalances that nodes out the cluster, and then rebalances them back
Expand All @@ -30,7 +31,7 @@ def tearDown(self):
where we are adding back and removing at least half of the nodes."""
def incremental_rebalance_in_out_with_max_buckets_number(self):
self.bucket_size = self.input.param("bucket_size", 100)
bucket_num = self.quota / self.bucket_size
bucket_num = max(10, self.quota / self.bucket_size)
self.log.info('total %s buckets will be created with size %s MB' % (bucket_num, self.bucket_size))
self.cluster.create_default_bucket(self.master, self.bucket_size, self.num_replicas)
self.buckets.append(Bucket(name="default", authType="sasl", saslPassword="",
Expand Down

0 comments on commit a55ac76

Please sign in to comment.