Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-713

Test failures in scenarios_t.py

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • 3.0.0-beta.2
    • None
    • tests
    • None
    • 1

    Description

      Running against 6.0 in particular, I'm seeing these:

      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/ubuntu/couchbase-python-client/couchbase/tests_v3/cases/scenarios_t.py", line 169, in test_scenario_C_clientSideDura
      bility
          self.coll.upsert("id","test")
        File "<boltons.funcutils.FunctionBuilder-12>", line 2, in upsert
        File "/home/ubuntu/couchbase-python-client/couchbase/result.py", line 375, in mutated
          result = func(*args, **kwargs)
        File "/home/ubuntu/couchbase-python-client/couchbase/collection.py", line 776, in upsert
          return ResultPrecursor(self.bucket.upsert(id, value, **final_options), final_options)
      couchbase_core.exceptions.NotSupportedError: <RC=0x13[LCB_NOT_SUPPORTED (0x13)], There was a problem scheduling your request, or d
      etermining the appropriate server or vBucket for the key(s) requested. This may also be a bug in the SDK if there are no network i
      ssues, C Source=(src/store.c,256)
      >======================================================================
      ERROR: Scenario D (variation of A):
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/ubuntu/couchbase-python-client/couchbase/tests_v3/cases/scenarios_t.py", line 277, in test_scenario_D
          self.coll.upsert("id",entry)
        File "<boltons.funcutils.FunctionBuilder-12>", line 2, in upsert
        File "/home/ubuntu/couchbase-python-client/couchbase/result.py", line 375, in mutated
          result = func(*args, **kwargs)
        File "/home/ubuntu/couchbase-python-client/couchbase/collection.py", line 776, in upsert
          return ResultPrecursor(self.bucket.upsert(id, value, **final_options), final_options)
      couchbase_core.exceptions.NotSupportedError: <RC=0x13[LCB_NOT_SUPPORTED (0x13)], There was a problem scheduling your request, or d
      etermining the appropriate server or vBucket for the key(s) requested. This may also be a bug in the SDK if there are no network i
      ssues, C Source=(src/store.c,256)
      >======================================================================
      ERROR: Scenario E (if applicable):
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/ubuntu/couchbase-python-client/couchbase/tests_v3/cases/scenarios_t.py", line 373, in test_scenario_E
          self.coll.upsert("id",dict(name="fred"))
        File "<boltons.funcutils.FunctionBuilder-12>", line 2, in upsert
        File "/home/ubuntu/couchbase-python-client/couchbase/result.py", line 375, in mutated
          result = func(*args, **kwargs)
        File "/home/ubuntu/couchbase-python-client/couchbase/collection.py", line 776, in upsert
          return ResultPrecursor(self.bucket.upsert(id, value, **final_options), final_options)
      couchbase_core.exceptions.NotSupportedError: <RC=0x13[LCB_NOT_SUPPORTED (0x13)], There was a problem scheduling your request, or determining the appropriate server or vBucket for the key(s) requested. This may also be a bug in the SDK if there are no network issues, C Source=(src/store.c,256)
      >======================================================================
      ERROR: Scenario F (if applicable):
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/ubuntu/couchbase-python-client/couchbase/tests_v3/cases/scenarios_t.py", line 391, in test_scenario_F_fulldoc
          self.coll.upsert("id",item)
        File "<boltons.funcutils.FunctionBuilder-12>", line 2, in upsert
        File "/home/ubuntu/couchbase-python-client/couchbase/result.py", line 375, in mutated
          result = func(*args, **kwargs)
        File "/home/ubuntu/couchbase-python-client/couchbase/collection.py", line 776, in upsert
          return ResultPrecursor(self.bucket.upsert(id, value, **final_options), final_options)
      couchbase_core.exceptions.NotSupportedError: <RC=0x13[LCB_NOT_SUPPORTED (0x13)], There was a problem scheduling your request, or determining the appropriate server or vBucket for the key(s) requested. This may also be a bug in the SDK if there are no network issues, C Source=(src/store.c,256)
      >======================================================================
      ERROR: test_scenario_c_server_side_durability (couchbase_tests.test_sync.transplant_class.<locals>.C)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/ubuntu/couchbase-python-client/couchbase/tests_v3/cases/scenarios_t.py", line 237, in test_scenario_c_server_side_durability
          self.coll.upsert("id","fred",durability_level=Durability.NONE)
        File "<boltons.funcutils.FunctionBuilder-12>", line 2, in upsert
        File "/home/ubuntu/couchbase-python-client/couchbase/result.py", line 375, in mutated
          result = func(*args, **kwargs)
        File "/home/ubuntu/couchbase-python-client/couchbase/collection.py", line 776, in upsert
          return ResultPrecursor(self.bucket.upsert(id, value, **final_options), final_options)
      couchbase_core.exceptions.NotSupportedError: <RC=0x13[LCB_NOT_SUPPORTED (0x13)], There was a problem scheduling your request, or determining the appropriate server or vBucket for the key(s) requested. This may also be a bug in the SDK if there are no network i  File "/home/ubuntu/couchbase-python-client/couchbase/result.py", line 375, in mutated
          result = func(*args, **kwargs)
        File "/home/ubuntu/couchbase-python-client/couchbase/collection.py", line 776, in upsert
          return ResultPrecursor(self.bucket.upsert(id, value, **final_options), final_options)
      couchbase_core.exceptions.NotSupportedError: <RC=0x13[LCB_NOT_SUPPORTED (0x13)], There was a problem scheduling your request, or d
      etermining the appropriate server or vBucket for the key(s) requested. This may also be a bug in the SDK if there are no network i
      ssues, C Source=(src/store.c,256)
      >======================================================================
      ERROR: test_upsert (couchbase_tests.test_sync.transplant_class.<locals>.C)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/ubuntu/couchbase-python-client/couchbase/tests_v3/cases/scenarios_t.py", line 418, in test_upsert
          self.coll.upsert("fish", "banana")
        File "<boltons.funcutils.FunctionBuilder-12>", line 2, in upsert
        File "/home/ubuntu/couchbase-python-client/couchbase/result.py", line 375, in mutated
          result = func(*args, **kwargs)
        File "/home/ubuntu/couchbase-python-client/couchbase/collection.py", line 776, in upsert
          return ResultPrecursor(self.bucket.upsert(id, value, **final_options), final_options)
      couchbase_core.exceptions.NotSupportedError: <RC=0x13[LCB_NOT_SUPPORTED (0x13)], There was a problem scheduling your request, or determining the appropriate server or vBucket for the key(s) requested. This may also be a bug in the SDK if there are no network issues, C Source=(src/store.c,256)>
      

      Seems to be attempts to use named collections and/or scopes on a 6.0.   Lets come up with a way to know whether or not to used a named collection and/or scope, and just use defaultCollection, etc.. if against 6.0.  

      Also - what should we do when someone tries to upsert a collection in a 6.0 cluster?  Lets come up with a strategy.  

      One possibility is how I did this for groups – if you try to get all groups, and the server doesn't  support groups, it 404s.  So we can catch that and raise NotSupportedError instead (with appropriate messaging).  Then the users can see why there was a failure, and our tests can run against 6.0 and 6.5 by just trying that and making the appropriate decisions.  However, there is some thinking that we can do better - and ask libcouchbase if collections are supported - if so lets do that instead.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Ellis.Breen Ellis Breen
            david.kelly David Kelly (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty