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

Query: Flex index query fails periodically.

    XMLWordPrintable

Details

    Description

      Build: 7.0.0-2518

      Cluster configuration: 4 nodes:

      data, index, query, search

      data

      search

      search

       

      Bucket `default` contains 1000 docs like this:

      {
          "default": {
            "dept": "Engineering",
            "email": "kory@mcdiabetes.com",
            "emp_id": "10000001",
            "is_manager": true,
            "join_date": "2015-08-13T09:30:00",
            "languages_known": [
              "Quechua",
              "Portuguese",
              "Africans"
            ],
            "manages": {
              "reports": [
                "Hedda Wright",
                "Callia Robinson Sr.",
                "Trista Baker III",
                "Joby Allen",
                "Basha Foster",
                "Salina Allen"
              ],
              "team_size": 6
            },
            "mutated": 0,
            "name": "Kory Palmer",
            "salary": 75891.68,
            "type": "emp"
          },
          "id": "emp_10000001"
        }

      bucket `default` is provided with primary index:

      CREATE PRIMARY INDEX `primary_gsi_index` ON `default`
      

      fts index definition is:

      {
       "name": "default_index",
       "type": "fulltext-index",
       "params": {
        "doc_config": {
         "docid_prefix_delim": "",
         "docid_regexp": "",
         "mode": "type_field",
         "type_field": "type"
        },
        "mapping": {
         "default_analyzer": "keyword",
         "default_datetime_parser": "dateTimeOptional",
         "default_field": "_all",
         "default_mapping": {
          "default_analyzer": "keyword",
          "dynamic": true,
          "enabled": true
         },
         "default_type": "_default",
         "docvalues_dynamic": true,
         "index_dynamic": true,
         "store_dynamic": false,
         "type_field": "type"
        },
        "store": {
         "indexType": "scorch",
         "mossStoreOptions": {}
        }
       },
       "sourceType": "gocbcore",
       "sourceName": "default",
       "sourceUUID": "38bb555c12c2483f7b934e28d57bad00",
       "sourceParams": {},
       "planParams": {
        "maxPartitionsPerPIndex": 171,
        "numReplicas": 0,
        "indexPartitions": 6
       },
       "uuid": "37f61741e353a426"
      }

      While running query

      select meta().id from default USE INDEX (USING FTS, USING GSI) where  ( salary between 93000.0 and 96352.0)
      

       periodically I'm getting the following error:

      [
        {
          "code": 5000,
          "msg": "n1fty: client unavailable, try refreshing",
          "query": "/*select meta().id from default where  ( salary between 93000.0 and 96352.0)*/\nselect meta().id from default USE INDEX (USING FTS, USING GSI) where  ( salary between 93000.0 and 96352.0)"
        }
      ]

       

      Attachments

        Issue Links

          For Gerrit Dashboard: MB-40380
          # Subject Branch Project Status CR V

          Activity

            People

              girish.benakappa Girish Benakappa
              evgeny.makarenko Evgeny Makarenko (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