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

Backup with include/exclude flags and Overlapping filters are not validated

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not a Bug
    • Cheshire-Cat
    • 7.0.0
    • tools
    • Untriaged
    • 1
    • No

    Description

      When attempting to configure an archive using the include/exclude flags where the filters are overlapping the user is not warned/nor is an error thrown. This is only for REST call. 

      lfc@Hemants-MacBook-Pro cb_builds % curl -u Administrator:password -i -X GET http://10.112.190.101:9102/api/v1/bucket/test_bucket_1/backup?include=test_scope_1,_default,_default._default,test_scope_1.test_collection_1
      HTTP/1.1 200 OK
      Content-Type: application/json
      Date: Thu, 25 Feb 2021 14:48:31 GMT
      Transfer-Encoding: chunked
       
       
      {"code":"success","result":{"metadata":[{"indexerId":"3e7513636205c4d6610f03752ecb4f82","nodeUUID":"3e7513636205c4d6610f03752ecb4f82","storageMode":"plasma","topologies":[{"version":322,"bucket":"test_bucket_1","scope":"_default","collection":"_default","definitions":[{"bucket":"test_bucket_1","scope":"_default","collection":"_default","name":"primary_idx_1","defnId":17701843082238830788,"instances":[{"instId":6189819814067731102,"state":4,"steamId":1,"partitions":[{"singlePartition":{"slices":[{"indexerId":"3e7513636205c4d6610f03752ecb4f82"}]},"keyPartition":{}}],"numPartitions":1,"storageMode":"plasma"}]},{"bucket":"test_bucket_1","scope":"_default","collection":"_default","name":"idx_1_2_1","defnId":18317113906483148971,"instances":[{"instId":11014018663778085179,"state":4,"steamId":1,"partitions":[{"singlePartition":{"slices":[{"indexerId":"3e7513636205c4d6610f03752ecb4f82"}]},"keyPartition":{}}],"numPartitions":1,"storageMode":"plasma"}]}]},{"version":122,"bucket":"test_bucket_1","scope":"test_scope_1","collection":"test_collection_1","definitions":[{"bucket":"test_bucket_1","scope":"test_scope_1","collection":"test_collection_1","name":"idx_1_1_1","defnId":14247166789003903673,"instances":[{"instId":10981629964448866283,"state":4,"steamId":1,"partitions":[{"singlePartition":{"slices":[{"indexerId":"3e7513636205c4d6610f03752ecb4f82"}]},"keyPartition":{}}],"numPartitions":1,"storageMode":"plasma"}]}]}],"definitions":[{"defnId":17701843082238830788,"name":"primary_idx_1","using":"plasma","bucket":"test_bucket_1","bucketUUID":"3f4bad8a6efb91de0fce3a65c7e8292a","isPrimary":true,"exprType":"N1QL","partitionScheme":"SINGLE","NumReplica2":{"HasValue":true,"Base":0,"Incr":0,"Decr":0},"Scope":"_default","Collection":"_default","ScopeId":"0","CollectionId":"0"},{"defnId":14247166789003903673,"name":"idx_1_1_1","using":"plasma","bucket":"test_bucket_1","bucketUUID":"3f4bad8a6efb91de0fce3a65c7e8292a","secExprs":["`firstName`","`lastName`"],"exprType":"N1QL","partitionScheme":"SINGLE","desc":[false,false],"NumReplica2":{"HasValue":true,"Base":0,"Incr":0,"Decr":0},"Scope":"test_scope_1","Collection":"test_collection_1","ScopeId":"8","CollectionId":"8"},{"defnId":18317113906483148971,"name":"idx_1_2_1","using":"plasma","bucket":"test_bucket_1","bucketUUID":"3f4bad8a6efb91de0fce3a65c7e8292a","secExprs":["`firstName`","`lastName`"],"exprType":"N1QL","partitionScheme":"SINGLE","desc":[false,false],"NumReplica2":{"HasValue":true,"Base":0,"Incr":0,"Decr":0},"Scope":"_default","Collection":"_default","ScopeId":"0","CollectionId":"0"}]}]}}%                           lfc@Hemants-MacBook-Pro cb_builds % 

       

       

      User is appropriately warned when same is tried using tool

      Attachments

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

        Activity

          People

            hemant.rajput Hemant Rajput
            hemant.rajput Hemant Rajput
            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