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

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

            Activity

            thuan Thuan Nguyen created issue -
            james.lee James Lee made changes -
            Field Original Value New Value
            Assignee Patrick Varley [ pvarley ] James Lee [ james.lee ]
            james.lee James Lee made changes -
            Link This issue relates to MB-40253 [ MB-40253 ]
            thuan Thuan Nguyen made changes -
            Summary [tools] cbimport failed to create beer-sample bucket when import data from beer-sample data [tools] cbimport failed to create sample buckets when import data from sample buckets data
            till Till Westmann made changes -
            Link This issue blocks MB-38724 [ MB-38724 ]
            till Till Westmann made changes -
            Labels approved-for-6.6.0
            james.lee James Lee made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]
            james.lee James Lee made changes -
            Assignee James Lee [ james.lee ] Thuan Nguyen [ thuan ]
            arunkumar Arunkumar Senthilnathan made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

              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