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

[N1QL] test_indexcountscan fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.0.0
    • 5.0.0
    • query
    • 5.0.0-2194
    • Untriaged
    • Yes

    Description

      Job which fails:
      http://qa.sc.couchbase.com/job/cen006-p0-n1ql-vset03-07-covering_gsi/

      Test which fails:
      tuqquery.tuq_2i_index.QueriesIndexTests.test_indexcountscan

      How to run the test?
      ./testrunner -i /tmp/n1ql_set3.ini gsi_type=forestdb,nodes_init=1,get-cbcollect-info=True -t tuqquery.tuq_2i_index.QueriesIndexTests.test_indexcountscan,covering_index=true,doc-per-day=6,skip_index=True,index_type=gsi

      Error reported by test:

      ======================================================================
      FAIL: test_indexcountscan (tuqquery.tuq_2i_index.QueriesIndexTests)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "pytests/tuqquery/tuq_2i_index.py", line 2415, in test_indexcountscan
          "IndexCountScan is not being used")
      AssertionError: IndexCountScan is not being used
       
      ----------------------------------------------------------------------
      

      Index created:
      CREATE INDEX idx ON default(meta().id)

      Query issued:
      self.query = "select count(1) from %s WHERE meta().id like '%s' " %(bucket.name,'query-test%')

      Assert which fails:
      self.assertTrue(
      plan['~children'][0]'#operator' == 'IndexCountScan',
      "IndexCountScan is not being used")

      Is this also changed to Indexcountscan2?

      Attachments

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

        Activity

          People

            Prerna.Manaktala Prerna Manaktala (Inactive)
            Prerna.Manaktala Prerna Manaktala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty