Permalink
Commits on Jul 31, 2012
  1. updated README text about testing & needing flush

    Change-Id: I2cb0bf84b9e2d2d9747ff2a3776888006c3c8c59
    Reviewed-on: http://review.couchbase.org/19110
    Reviewed-by: Benjamin Young <benjamin@couchbase.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 31, 2012
  2. pep8 the README code

    Change-Id: I24dcdbf17d9a6fab5d54608342b6c279426a6199
    Reviewed-on: http://review.couchbase.org/19096
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    Reviewed-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 31, 2012
  3. conditional syntax changes per pep8

    if cond != None is now if cond is not None
    if cond == None is now if cond is None
    
    Change-Id: I1cfcc6df32ad09d09461512ada993f91d2568cb4
    Reviewed-on: http://review.couchbase.org/19090
    Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 31, 2012
  4. big whitespace-focused pep8 update

    pep8.py 1.3.3 shows a lot more than 1.1 >_<
    
    Change-Id: I05959084efe1970e1bdd0185583ea681aa115766
    Reviewed-on: http://review.couchbase.org/19089
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 31, 2012
  5. added test of other Readme example

    Also made Couchbase class more accessible for imports:
      from couchbase import Couchbase
    Updated the example code to use this, rather than the
    deprecated Server class.
    
    Change-Id: Ice336c8f823d5d40f5961aa8f07151ec73d65d99
    Reviewed-on: http://review.couchbase.org/19085
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    Reviewed-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 30, 2012
  6. flush event error handling does contain a vbucket

    Change-Id: I11260857d82acd8b13ca6ab279e9b5439169a019
    Reviewed-on: http://review.couchbase.org/19088
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 31, 2012
  7. memcached buckets do not have diskUsed stats

    Change-Id: Ideb38c4bebb9279bf849089e04d3218279057a5f
    Reviewed-on: http://review.couchbase.org/19087
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 30, 2012
  8. added warmup state as valid HTTP API state

    Previously the list of available nodes was limited
    to ones marked healthy. 2.0 introduces a warmup
    state in which the server can still respond to HTTP
    requests, and as such, we need to keep those in the
    list of available nodes.
    
    Change-Id: I569bcd748055afd0f79716b1d41687abf6c725b0
    Reviewed-on: http://review.couchbase.org/19086
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 30, 2012
  9. added tests for examples in the readme

    Testing the old/current ones first, then will update.
    Plan to keep the old ones around to check backwards
    compatibility...at least for now.
    
    Change-Id: I5c78f942cf35f9fa86668faf563d04e29913559e
    Reviewed-on: http://review.couchbase.org/19084
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 26, 2012
  10. pep8 setup.py

    Change-Id: I5808835d4a46bd02face2411fa2b64bbbf6ea059
    Reviewed-on: http://review.couchbase.org/18879
    Reviewed-by: Benjamin Young <benjamin@couchbase.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 25, 2012
Commits on Jul 30, 2012
  1. module renamed :s/couchbase-python/couchbase

    The -python implied that we are a pure Python SDK. We still
    are for the time being, but not for much longer. This is
    our first major release to PyPI, so figured we should get
    the name correct right off.
    
    Change-Id: I28554f13ef7139e56087409ac4d6dfcc27b8618f
    Reviewed-on: http://review.couchbase.org/18878
    Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 25, 2012
  2. finished up pep8 event.py

    Seems I missed changing the other code to reference
    the is_set rather than isSet method. Somethings cannot
    be seen in a single patch in Gerrit...
    
    Change-Id: Ibbb07c06e98854907570111d4c407cafa11f7365
    Reviewed-on: http://review.couchbase.org/18877
    Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 25, 2012
Commits on Jul 25, 2012
  1. pep8 event.py

    Change-Id: Ie08c08a18c051be78536b86a6579c456401a414d
    Reviewed-on: http://review.couchbase.org/18813
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 25, 2012
  2. removed warning catcher in favor of with

    Other things break 2.4 compatibility, so
    there was no need to keep this thing.
    
    Change-Id: I264b3e9e729dc397150292655157dd4d737bd70a
    Reviewed-on: http://review.couchbase.org/18433
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 17, 2012
  3. simplifying Bucket var names

    WARNING: Bucket.bucket_name is now Bucket.name
    
    Change-Id: If63d472c652c02f3faa502a1f9cee0d9c1c2e5d1
    Reviewed-on: http://review.couchbase.org/18432
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 17, 2012
  4. refactored client memcached bucket tests

    Also added @nottest and @attr in the right places
    
    Change-Id: Ic3f5e110d904d307cd20ba7c69b4169516a880f4
    Reviewed-on: http://review.couchbase.org/18431
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 17, 2012
  5. fixed memcached bucket access via CouchbaseClient

    This patch fixes CouchbaseClient object initiation
    primarily. It previously did not work with memcached
    buckets. It also changes the internal self.bucket
    attribute to be an object rather than just the name,
    so that we have more power, with fewer trips to the
    server.
    
    Change-Id: I446bae3158bdd6f644c5898d7cf9a6b73c879e4b
    Reviewed-on: http://review.couchbase.org/18430
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 17, 2012
  6. narrowed deprecation warning check to just getMulti

    Change-Id: I12dfa193991ff6bb719c074520c200b10ecf7b5e
    Reviewed-on: http://review.couchbase.org/18386
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
    Reviewed-by: Benjamin Young <benjamin@couchbase.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 16, 2012
  7. fixed PYCBC-15; API supports integer value sets

    Previously, the developer had to pass strings to .set().
    Now, ints can be passed in, and are coerced into strings
    both going in and coming out.
    
    WARNING: this is a backwards compatibility break, as old
    code which routed around this issue by always expecting
    strings to be returned, will now need updating.
    
    Change-Id: I29d215357a15d0c347b07b3a545a76325ef434f7
    Reviewed-on: http://review.couchbase.org/18357
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
    Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jun 1, 2012
  8. setting up VBucketAware & MemcachedClient tests better

    There was no value in setting self.client equal to
    something in a parent and then overriding it on the
    next line. Base has what these need.
    
    Change-Id: Ib87c5406768c84c45ad11731eb874f379236131d
    Reviewed-on: http://review.couchbase.org/18356
    Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    BigBlueHat committed with BigBlueHat Jul 12, 2012
Commits on Jul 13, 2012
  1. PYCBC-28: minimize wait events

    Problem: by default all "wait for condition" calls in threading
    module have minimal initial delay -- 1ms. We provoke these delays
    during every request. We also use blocking mode for Queue object.
    
    The patch minimizes wait events by introducing simplified Event class
    (initial delay is 0.1ms and less aggressive timeout checker) and
    avoiding blocking behavior.
    
    Improvement is 734 sets/sec vs. 349 sets/sec. Of course, CPU
    utilization is higher.
    
    However our dispatching approach is still slower than single-threaded
    memcache client (~1600 sets/sec).
    
    Change-Id: I771005606bb683e9d2113c6f19c5a72fa5bd92a5
    Reviewed-on: http://review.couchbase.org/18298
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    pavel-paulau committed with BigBlueHat Jul 12, 2012
Commits on Jul 12, 2012
  1. deprecating getMulti for get_multi; testing both

    Change-Id: I0b3194a56fb7c74074db0fae4d9da72fc3fa0362
    Reviewed-on: http://review.couchbase.org/18230
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 11, 2012
  2. made sasl_mechanisms return frozenset; tested

    Change-Id: Ide5a9df35c7b5e80e2c64a0f46aad62f017d15b7
    Reviewed-on: http://review.couchbase.org/18229
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 11, 2012
Commits on Jul 11, 2012
  1. added getl & gat tests for client

    Change-Id: I04eb5bdcfc68b69e10d6c7f5a6e253eb60542686
    Reviewed-on: http://review.couchbase.org/18208
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    Reviewed-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 11, 2012
  2. adding some docstrings to client

    Change-Id: I810bb2f17b542036903542e10f7f5be53f942d4f
    Reviewed-on: http://review.couchbase.org/18022
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 6, 2012
  3. no more import *

    Change-Id: Id1d7ff031bed28b23edf948902c3f1e99b81400b
    Reviewed-on: http://review.couchbase.org/18018
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 6, 2012
  4. added VBucketAware/Memcached version test

    Change-Id: I2b41703f35e3ab2b180dbf180a11900753be92ae
    Reviewed-on: http://review.couchbase.org/18016
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 6, 2012
  5. tweaked json imports to check exception type

    Change-Id: I0e800d86e7800b2fe4156e9c18325aceb4174419
    Reviewed-on: http://review.couchbase.org/18015
    Reviewed-by: Farshid Ghods <farshid@couchbase.com>
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 6, 2012
  6. moved gat to VBucketAwareClient

    Deprecated it in MemcachedClient
    
    Change-Id: I805c7d8fcfac297ae23746ebb10173d94df5b4cc
    Reviewed-on: http://review.couchbase.org/18014
    Reviewed-by: Farshid Ghods <farshid@couchbase.com>
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 6, 2012
  7. simplified logger inclusion/usage

    Change-Id: Iab9635dc223f80527814a7131990d453245b62cf
    Reviewed-on: http://review.couchbase.org/18013
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 6, 2012
  8. explicit imports throughout

    Much more obvious what bits are ours now.
    
    Change-Id: I4905aed7fb7d10d8717f269a9dc2ab81e6c8a4b0
    Reviewed-on: http://review.couchbase.org/18012
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 6, 2012
  9. fixed CouchbaseClientTest class parentage

    Change-Id: I163839dd389555fb4d936ce72ec6ba32802606df
    Reviewed-on: http://review.couchbase.org/18017
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 6, 2012
  10. killing off unused imports; tnx pyflakes!

    Change-Id: I6edaa126c7b3bd03d992069e2d1872af51b97212
    Reviewed-on: http://review.couchbase.org/17974
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 3, 2012
  11. added SkipTest for 2.x tests

    python setup.py nosetests runs all tests
    by default. This (more easily) skips 2.x
    related tests, without the need for passing
    in config values.
    
    Change-Id: I91b6bfea99d34e6441e56089250750bbdf5f93ca
    Reviewed-on: http://review.couchbase.org/18011
    Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 6, 2012
  12. removed copies of external modules

    We will be depending on pip for package installation
    for the SDK (as most/all Python packages do). If we
    need these dependencies pulled in prior to static
    packaging into .zip files, we should look for a
    way to do it using the same set of references in
    the setup.py (used by pip) and not copy/paste
    packages into our repository.
    
    Some backstory:
    http://review.couchbase.org/#change,14678
    
    Change-Id: I61d2a342359ccf8b8c6be0e8641a9785ff90220a
    Reviewed-on: http://review.couchbase.org/18010
    Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Benjamin Young <benjamin@couchbase.com>
    BigBlueHat committed with BigBlueHat Jul 6, 2012