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

cbimport should timeout and throw error when missing field-separator in non default field separator

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.6.0
    • 4.6.0
    • tools
    • None
    • Ubuntu 12.04
    • Untriaged
    • Ubuntu 64-bit
    • No

    Description

      Install Couchbase Server 4.6.0-3527
      Create default bucket.
      Import tab separator data with missing --field-separator flag. Command hang forever without throw out any error. I had to kill cbimport process to stop it.

      [root@localhost ~]# /opt/couchbase/bin/cbimport csv -c 172.23.106.84 -u Administrator -p password -b default -d file:///tmp/import/csv_tab_1000_lines -g %index%
      ^Z
      [1]+ Stopped /opt/couchbase/bin/cbimport csv -c 172.23.106.84 -u Administrator -p password -b default -d file:///tmp/import/csv_tab_1000_lines -g %index%

      [root@localhost ~]# /opt/couchbase/bin/cbimport csv -c 172.23.106.84 -u Administrator -p password -b default -d file:///tmp/import/csv_tab_1000_lines --field-separator $'\t' -g %index%
      CSV `file:///tmp/import/csv_tab_1000_lines` imported to `http://172.23.106.84:8091` successfully

      Attachments

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

        Activity

          People

            mikew Mike Wiederhold [X] (Inactive)
            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