Call the parent constructor in KVStoreAwareSmartClient

Change-Id: I09965db55f21713de8ee3ccb799a0c2836231b2b
Reviewed-on: http://review.couchbase.org/14929
Tested-by: Ketaki Gangal <ketakigangal@gmail.com>
Reviewed-by: Ketaki Gangal <ketakigangal@gmail.com>
Moved thread for load generating tasks into top level class

All load generators should create a thread to generate load
against the server. As a result this thread should be in
the GenericLoadingTask class.

Change-Id: I8d12f31240a4ca6e064461382c2449713be33a63
Reviewed-on: http://review.couchbase.org/14925
Reviewed-by: Karan Kumar <karan@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Move task step function into Task class

Change-Id: I44182f744c58f51e427c321e30434f194c4543b4
Reviewed-on: http://review.couchbase.org/14926
Reviewed-by: Karan Kumar <karan@couchbase.com>
Reviewed-by: Farshid Ghods <farshid@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Add a Future implementation and use it for Tasks

Change-Id: I9e61299e788f22e187bb93b2af4dd4e898a10c62
Reviewed-on: http://review.couchbase.org/14927
Reviewed-by: Karan Kumar <karan@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Add TaskScheduler class for scheduling tasks

Change-Id: I026762f7efb6b1a2e20538b60eeca5e8181a6eec
Reviewed-on: http://review.couchbase.org/14928
Reviewed-by: Karan Kumar <karan@couchbase.com>
Reviewed-by: Farshid Ghods <farshid@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
check for both active and replica when deciding if a vbucket is ready

Change-Id: I51021ba32d62beb3939707cdf7cbbd82233e1abf
Reviewed-on: http://review.couchbase.org/14991
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Added StatsWaitTask to monitor stats

Change-Id: I8dc197d42298a728e52b5c0b7f0d0d34990d3448
Reviewed-on: http://review.couchbase.org/14930
Reviewed-by: Keith Batten <kbatten@gmail.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Remove taskhelper.py

This module has been replaced by taskscheduler.py

Change-Id: Iadc4cc817e9ea63716955d61704a6ccfae7d2ebf
Reviewed-on: http://review.couchbase.org/14978
Reviewed-by: Farshid Ghods <farshid@couchbase.com>
Reviewed-by: Karan Kumar <karan@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
add initial checkpoint test file

Change-Id: Ibbc6bb58ac21e2f28ada02d38c4a89de09509774
Reviewed-on: http://review.couchbase.org/14994
Tested-by: Michael Wiederhold <mike@couchbase.com>
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
don't call get_vbucket_state if the vbucket doesn't exist on the server

This fixes an issue with mc_bin_client.get_vbucket_state() creating
an inifinte recursion if the vbucket state never changes from
NOT_MY_VBUCKET

Change-Id: Ibe767227be41a2d3b3370dca7e7dc75618228538
Reviewed-on: http://review.couchbase.org/14996
Reviewed-by: Karan Kumar <karan@couchbase.com>
Tested-by: Karan Kumar <karan@couchbase.com>
Add all error codes to memcacheConstants.py

Change-Id: I643453d149664bcff036cd35f81c5503911d2042
Reviewed-on: http://review.couchbase.org/15043
Reviewed-by: Karan Kumar <karan@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Remove unused import from task.py

Change-Id: I49752dd8b19974e32914e21bff6a434b386d39ed
Reviewed-on: http://review.couchbase.org/15073
Reviewed-by: Karan Kumar <karan@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Add a string message to MemcachedError

It is always a major pain for me to remeber all of the memcached
error codes when the pop up. We now print a message that tells
us what the error is.

Change-Id: I206ecaaa5930a258c1c055b1dcd2c7118b5c2d03
Reviewed-on: http://review.couchbase.org/15044
Reviewed-by: Karan Kumar <karan@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Couchbase doesn't support start/stop replication

These commands haven't been in the server in a while (or maybe
even ever) so let's remove them.

Change-Id: I175c8be3c9c07763b862fdea729fbde4f05d3d7d
Reviewed-on: http://review.couchbase.org/15047
Reviewed-by: Karan Kumar <karan@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Fix compile error in rebalance task

Nodes to remove wasn't working correctly in the rebalance task.

Change-Id: I03a228e094c1a663eac2d5579ca9c56a40b08315
Reviewed-on: http://review.couchbase.org/15074
Reviewed-by: Karan Kumar <karan@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Fix issues in Future class

This commit adds all of the missing exceptions and also causes
the future to finish with an exception if a TimeoutError is
thrown. This will allow timedout tasks to abort execution if they
time out.

Change-Id: I47f63914ff3024a2e3bbc9a3505f6897416ed6f4
Reviewed-on: http://review.couchbase.org/15076
Reviewed-by: Karan Kumar <karan@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
StatsWaitTask uses the stat command parameter

Change-Id: I239d4f1e6239ff60f0b53278ead75f87dd9592a5
Reviewed-on: http://review.couchbase.org/15075
Reviewed-by: Karan Kumar <karan@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Added three checkpoint test cases

This commit adds test cases that test to see if a checkpoint is
properly created after inserting a certain number of items, to
see if a new checkpoint is created after a checkpoint timeout,
and to make sure that checkpoint deduplication is properly working.

This commit also includes a new stats helper file and the
configuration file for running checkpoint tests.

Change-Id: I4122356e668b0a22ad236c98b36b297b41bccc6f
Reviewed-on: http://review.couchbase.org/15077
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Added checkpoint collapse test

Change-Id: Ifa0f546dff83f3d866595c6d01dba503bd22bc61
Reviewed-on: http://review.couchbase.org/15163
Reviewed-by: Keith Batten <kbatten@gmail.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>
Update config file for checkpoint tests

Add the checkpoint collapse test.

Change-Id: I1601cd097be62a36afde643a9249ffc8f88cc641
Reviewed-on: http://review.couchbase.org/15174
Reviewed-by: Karan Kumar <karan@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>