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

[FTS-upside_down] Index is memory-only when kvStoreName is left unspecified

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 6.0.0
    • 6.0.0
    • fts
    • Untriaged
    • Centos 64-bit
    • Yes

    Description

      Build
      6.0.0-1607

      Observed in system test where kvStoreName was not explicitly passed and the index was memory-only.

      In Spock (5.0.0) though, the index defaulted to index with persistence when this param was not supplied at the time of index creation.

      curl -XPUT -H "Content-Type: application/json" -u Administrator:password http://172.23.106.139:8094/api/index/travel -d '{
        "type": "fulltext-index",
        "name": "travel",
        "uuid": "2a0368795a30a6c2",
        "sourceType": "couchbase",
        "sourceName": "travel-sample",
        "planParams": {
          "maxPartitionsPerPIndex": 171
        },
        "params": {
          "doc_config": {
            "mode": "type_field",
            "type_field": "type"
          },
          "mapping": {
            "default_analyzer": "standard",
            "default_datetime_parser": "dateTimeOptional",
            "default_field": "_all",
            "default_mapping": {
              "dynamic": true,
              "enabled": true
            },
            "default_type": "_default",
            "index_dynamic": true,
            "store_dynamic": false
          },
          "store": {}
        },
        "sourceParams": {}
      }'
      

      [root@localhost travel_2517916eb8bc5654_18572d87.pindex]# cd store/
      [root@localhost store]# ls
      data-0000000000000007.moss
      [root@localhost store]# ls -lrt
      total 153024
      rw------ 1 couchbase couchbase 158516157 Sep 6 07:47 data-0000000000000007.moss

      In Alice -

      curl -XPUT -H "Content-Type: application/json" \
      http://172.23.104.78:8094/api/index/st_index_upside_down -d \
      '{
        "type": "fulltext-index",
        "name": "st_index_upside_down",
        "uuid": "4d05b6397ca764bb",
        "sourceType": "couchbase",
        "sourceName": "other",
        "planParams": {
          "maxPartitionsPerPIndex": 171
        },
        "params": {
          "doc_config": {
            "docid_prefix_delim": "",
            "docid_regexp": "",
            "mode": "type_field",
            "type_field": "type"
          },
          "mapping": {
            "analysis": {},
            "default_analyzer": "standard",
            "default_datetime_parser": "dateTimeOptional",
            "default_field": "_all",
            "default_mapping": {
              "dynamic": true,
              "enabled": true
            },
            "default_type": "_default",
            "docvalues_dynamic": true,
            "index_dynamic": true,
            "store_dynamic": false,
            "type_field": "_type"
          },
          "store": {
            "indexType": "upside_down"
          }
        },
        "sourceParams": null
      }'
      

      [root@localhost @fts]# ls
      cbft.uuid                                    social_46a0a6352b3ac296_aa574717.pindex           st_index_upside_down_4d05b6397ca764bb_13aa53f3.pindex
      good_state_64f1fdd64a1a73c3_13aa53f3.pindex  st_index_scorch_4615c09fa4074f55_13aa53f3.pindex
      [root@localhost @fts]# cd st_index_upside_down_4d05b6397ca764bb_13aa53f3.pindex/
      [root@localhost st_index_upside_down_4d05b6397ca764bb_13aa53f3.pindex]# ls
      index_meta.json  PINDEX_BLEVE_META  PINDEX_META
      [root@localhost st_index_upside_down_4d05b6397ca764bb_13aa53f3.pindex]# 
      

      Attachments

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

        Activity

          People

            apiravi Aruna Piravi (Inactive)
            apiravi Aruna Piravi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty