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

FTS: backup-restore API. Collection based index cannot be restored from backup.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • 7.0.0
    • Cheshire-Cat
    • fts
    • Untriaged
    • Centos 64-bit
    • 1
    • Unknown

    Description

      Build: 7.0.0-4103

      The following backup:

       

      {
        "uuid": "1452cfc7ff854307",
        "indexDefs": {
          "idx1": {
            "type": "fulltext-index",
            "name": "idx1",
            "uuid": "",
            "sourceType": "gocbcore",
            "sourceName": "b1",
            "planParams": {
              "maxPartitionsPerPIndex": 171
            },
            "params": {
              "doc_config": {
                "docid_prefix_delim": "",
                "docid_regexp": "",
                "mode": "scope.collection.type_field",
                "type_field": "type"
              },
              "mapping": {
                "analysis": {},
                "default_analyzer": "standard",
                "default_datetime_parser": "dateTimeOptional",
                "default_field": "_all",
                "default_mapping": {
                  "dynamic": false,
                  "enabled": false
                },
                "default_type": "_default",
                "docvalues_dynamic": true,
                "index_dynamic": true,
                "store_dynamic": false,
                "type_field": "_type",
                "types": {
                  "s1.c1": {
                    "default_analyzer": "standard",
                    "dynamic": true,
                    "enabled": true
                  }
                }
              },
              "store": {
                "indexType": "scorch",
                "mossStoreOptions": {},
                "segmentVersion": 15
              }
            },
            "sourceParams": {}
          }
        },
        "implVersion": "5.5.0"
      }
      

      cannot be loaded using the following endpoint

       

       

      curl -POST -H "Content-Type: application/json" -u <username>:<password> http://<your_ip>:<your_port>/api/v1/backup -d '@backup.json'
      

      it gives the following server response:

       

       

      {"error":"rest_backup_restore: processRemapRequest failed, err: index remapping error: rest_backup_restore: indexName: idx1, validation errs: invalid input","request":"","status":"fail"}
      

       

       

      Attachments

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

        Activity

          People

            evgeny.makarenko Evgeny Makarenko (Inactive)
            evgeny.makarenko Evgeny Makarenko (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