Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-16287

get (cas) values from query and memcached client do not match

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Critical
    • 4.5.0
    • 4.1.0, 4.5.0
    • query
    • Security Level: Public
    • None
    • 450-247
      gsi index
    • Untriaged
    • Yes

    Description

      Automation to run
      --------------------------------------------
      ./testrunner -i there.ini -p doc-per-day=1,primary_indx_type=GSI -t tuqquery.tuq.QueryTests.test_meta_cas

      fails with error

      ======================================================================
      FAIL: test_meta_cas (tuqquery.tuq.QueryTests)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "pytests/tuqquery/tuq.py", line 718, in test_meta_cas
          self._verify_results(actual_result, expected_result)
        File "pytests/tuqquery/tuq.py", line 2996, in _verify_results
          expected_result[:100],expected_result[-100:]))
      AssertionError: Results are incorrect.
       Actual first and last 100:  [{'cas': 1442355253919416300}, {'cas': 1442355253921644500}, {'cas': 1442355253923741700}, {'cas': 1442355253925838800}, {'cas': 1442355253928001500}, {'cas': 1442355253930098700}, {'cas': 1442355253932785700}, {'cas': 1442355253934882800}, {'cas': 1442355253936914400}, {'cas': 1442355253939011600}, {'cas': 1442355253941108700}, {'cas': 1442355253943206000}, {'cas': 1442355253945368600}, {'cas': 1442355253947596800}, {'cas': 1442355253949694000}, {'cas': 1442355253952053200}, {'cas': 1442355253954019300}, {'cas': 1442355253956051000}, {'cas': 1442355253958082600}, {'cas': 1442 ...
      ..
      

      --------------------------------------------
      Regression : Yes
      --------------------------------------------
      Works as expected ie CAS from select query and memcached client.get() are same.

      --------------------------------------------
      What this test does
      --------------------------------------------
      1. create bucket + primary index
      2. Load 2045 items
      3. Test meta_cas using

      • SELECT META(default).cas as cas, META(default).id as id FROM default ORDER BY cas
        and compare the results with client.get() from Memcached.get()

      The comparison of the above fails, there is a complete mismatch between the cas values from both the clients.

      I tried ORDER BY to double check any errors on sorting, but that yields similar failure.

      Attachments

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

        Activity

          People

            isha Isha Kandaswamy (Inactive)
            ketaki Ketaki Gangal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty