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

          hemant.rajput Hemant Rajput created issue -
          owend Daniel Owen made changes -
          Field Original Value New Value
          Assignee Dave Finlay [ dfinlay ] Carlos Gonzalez Betancort [ carlos.gonzalez ]
          owend Daniel Owen made changes -
          Component/s tools [ 10223 ]
          Component/s RESTful-APIs [ 10017 ]
          owend Daniel Owen made changes -
          Epic Link MB-38440 [ 123634 ]
          owend Daniel Owen made changes -
          Epic Link MB-38440 [ 123634 ]
          carlos.gonzalez Carlos Gonzalez Betancort (Inactive) made changes -
          Assignee Carlos Gonzalez Betancort [ carlos.gonzalez ] Hemant Rajput [ hemant.rajput ]
          james.lee James Lee made changes -
          Comment [ [~carlos.gonzalez] please correct me if I'm wrong but it looks like the include/exclude data strings are not being passed down to '{{cbbackupmgr}}' correctly (otherwise I'd expected the same error to be returned). Looking at the code, I see that the '{{BuildConfigOptions}}' function expects to only be including (not excluding) and only at the bucket level. Is this the desired behavior; I don't recall what our stance was on full collections support?

           Update: I missed your comment before posting, as you say this is the indexing endpoint but I think the above still may be an issue^^ ]

          Closing ticket, as it's not a bug.

          hemant.rajput Hemant Rajput added a comment - Closing ticket, as it's not a bug.
          hemant.rajput Hemant Rajput made changes -
          Resolution Not a Bug [ 10200 ]
          Status Open [ 1 ] Closed [ 6 ]
          lynn.straus Lynn Straus made changes -
          Fix Version/s 7.0.0 [ 17233 ]
          lynn.straus Lynn Straus made changes -
          Fix Version/s Cheshire-Cat [ 15915 ]

          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