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

[tools] cbimport failed to create sample buckets when import data from sample buckets data

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 6.6.0
    • Fix Version/s: 6.6.0
    • Component/s: tools
    • Triage:
      Untriaged
    • Operating System:
      Centos 64-bit
    • Story Points:
      1
    • Is this a Regression?:
      Yes

      Description

      Install Couchbase server 6.6.0-7853 on a centos 7.6 server.
      Run cbimport to import beer-sample data in our sample directory. Failed to run due to beer-sample bucket is not available.

      [root@s44015 ~]#  /opt/couchbase/bin/cbimport json -c 172.23.121.224 -u Administrator -p password -b beer-sample -d file:///opt/couchbase/samples/beer-sample.zip -f sample -v
      2020-07-01T10:59:33.660-07:00 (Rest) GET http://172.23.121.224:8091/pools/default 200
      2020-07-01T10:59:33.661-07:00 (Plan) Transferring Eventing metadata
      2020-07-01T10:59:33.661-07:00 (Plan) Successfully transferred Eventing metadata
      2020-07-01T10:59:33.661-07:00 (Plan) Transferring full text index aliases
      2020-07-01T10:59:33.661-07:00 (Plan) Successfully transferred full text index aliases
      2020-07-01T10:59:33.661-07:00 (Plan) Checking if remote bucket 'beer-sample' exists
      2020-07-01T10:59:33.663-07:00 (Rest) GET http://172.23.121.224:8091/pools/default/buckets/beer-sample 404
      2020-07-01T10:59:33.663-07:00 JSON import failed: failed to execute cluster operations: failed to execute bucket operations: failed to check if bucket 'beer-sample' exists: bucket 'beer-sample' does not exist
      JSON import failed: bucket 'beer-sample' does not exist
      [root@s44015 ~]#  /opt/couchbase/bin/cbimport json -c 172.23.121.224 -u Administrator -p password -b beer-sample -d file:///opt/couchbase/samples/beer-sample.zip -f sample -v
      
      

      6.5.1 behaviour is cbimport will create beer-sample bucket when we import sample buckets.
      Test to run:
      clitest.importexporttest.ImportExportTests.test_import_json_sample,sample_file=beer-sample,imex_type=json,default_bucket=False,nodes_init=2
      If we change the behavior of cbimport in sample buckets, I will modify code with this change.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              thuan Thuan Nguyen
              Reporter:
              thuan Thuan Nguyen
              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