Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-1420

cbc-pillowfight --key-prefix does not work properly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • tools
    • 1

    Description

      Install Couchbase server 7.0.0-5295 on a ubuntu 20.04 server.
      Run cbc-pillowfight in /opt/couchbase/bin to load data to bucket with --key-prefix option. Failed to run with error :

       terminate called after throwing an instance of 'std::invalid_argument' 
       what():  stol
       
       
      root@ip-172-31-53-185:/opt/couchbase/bin# ./cbc-pillowfight -u Administrator -P password  -I 50000000 -t 14  -U "couchbase://172.31.36.38/other" -J -m 512 -M 1024 --key-prefix 'bkrs'
      Running. Press Ctrl-C to terminate...
      terminate called after throwing an instance of 'std::invalid_argument'
        what():  stol
      Aborted (core dumped)
      root@ip-172-31-53-185:/opt/couchbase/bin# ./cbc-pillowfight -u Administrator -P password  -I 50000000 -t 14  -U "couchbase://172.31.36.38/other" -J -m 512 -M 1024 --key-prefix 'bkrs1'
      Running. Press Ctrl-C to terminate...
      terminate called after throwing an instance of 'std::invalid_argument'
        what():  stol
      Aborted (core dumped)
      root@ip-172-31-53-185:/opt/couchbase/bin# ./cbc-pillowfight -u Administrator -P password  -I 50000000 -t 14  -U "couchbase://172.31.36.38/other" -J -m 512 -M 1024 --key-prefix '-bkrs1'
      Running. Press Ctrl-C to terminate...
      terminate called after throwing an instance of 'std::invalid_argument'
        what():  stol
      Aborted (core dumped)
      root@ip-172-31-53-185:/opt/couchbase/bin# ./cbc-pillowfight -u Administrator -P password  -I 50000000 -t 14  -U "couchbase://172.31.36.38/other" -J -m 512 -M 1024 --key-prefix '-bkrs'
      Running. Press Ctrl-C to terminate...
      terminate called after throwing an instance of 'std::invalid_argument'
        what():  stol
      Aborted (core dumped)
      root@ip-172-31-53-185:/opt/couchbase/bin# ./cbc-pillowfight -u Administrator -P password  -I 50000000 -t 14  -U "couchbase://172.31.36.38/other" -J -m 512 -M 1024 --key-prefix '-bkr'
      Running. Press Ctrl-C to terminate...
      terminate called after throwing an instance of 'std::invalid_argument'
        what():  stol
      Aborted (core dumped)
      root@ip-172-31-53-185:/opt/couchbase/bin# ./cbc-pillowfight -u Administrator -P password  -I 50000000 -t 14  -U "couchbase://172.31.36.38/other" -J -m 512 -M 1024 --key-prefix '-bk'
      Running. Press Ctrl-C to terminate...
      terminate called after throwing an instance of 'std::invalid_argument'
        what():  stol
      Aborted (core dumped)
      root@ip-172-31-53-185:/opt/couchbase/bin# ./cbc-pillowfight -u Administrator -P password  -I 50000000 -t 14  -U "couchbase://172.31.36.38/other" -J -m 512 -M 1024 --key-prefix '-b'
      Running. Press Ctrl-C to terminate...
      terminate called after throwing an instance of 'std::invalid_argument'
        what():  stol
      Aborted (core dumped)
      root@ip-172-31-53-185:/opt/couchbase/bin# ./cbc-pillowfight -u Administrator -P password  -I 50000000 -t 14  -U "couchbase://172.31.36.38/other" -J -m 512 -M 1024 --key-prefix '-2nd'
      Running. Press Ctrl-C to terminate...
      ^ZS/SEC:     821428
      [4]+  Stopped                 ./cbc-pillowfight -u Administrator -P password -I 50000000 -t 14 -U "couchbase://172.31.36.38/other" -J -m 512 -M 1024 --key-prefix '-2nd'
      root@ip-172-31-53-185:/opt/couchbase/bin# ./cbc-pillowfight -u Administrator -P password  -I 50000000 -t 14  -U "couchbase://172.31.36.38/other" -J -m 512 -M 1024 --key-prefix '-3nd'
      Running. Press Ctrl-C to terminate...
      ^ZS/SEC:     7799
       
      root@ip-172-31-53-185:~# /opt/couchbase/bin/cbc-pillowfight -u Administrator -P password  -I 50000000 -t 14  -U "couchbase://172.31.36.38/other" -J -m 512 -M 1024 --key-prefix 'bkrs' -v
      Running. Press Ctrl-C to terminate...
      0ms [Ic15f00f396a0e2a8] {4427} [INFO] (instance - L:503) Version=3.1.4, Changeset=513555d6c63dec7fd7166450282be92c6f74ef47
      0ms [Ic15f00f396a0e2a8] {4427} [INFO] (instance - L:504) Effective connection string: couchbase://172.31.36.38/other?username=Administrator&console_log_level=2&. Bucket=other
      3ms [Ic15f00f396a0e2a8] {4427} [INFO] (instance - L:195) DNS SRV lookup failed: LCB_ERR_UNKNOWN_HOST (1049). Ignore this if not relying on DNS SRV records
      3ms [Ic15f00f396a0e2a8] {4427} [INFO] (bootstrap - L:272) Requested network configuration: heuristic
      3ms [Ic15f00f396a0e2a8] {4427} [INFO] (cccp - L:176) Requesting connection to node 172.31.36.38:11210 for CCCP configuration
      3ms [Ic15f00f396a0e2a8] {4427} [INFO] (connection - L:485) <172.31.36.38:11210> (SOCK=49eaf25b55cf035e) Starting. Timeout=2000000us
      4ms [Ic15f00f396a0e2a8] {4427} [INFO] (connection - L:153) <172.31.36.38:11210> (SOCK=49eaf25b55cf035e) Connected established
      11ms [Ic15f00f396a0e2a8] {4427} [INFO] (confmon - L:183) Setting initial configuration. Received via CCCP (bucket="other", rev=1:10783, address="172.31.36.38")
      11ms [Ic15f00f396a0e2a8] {4427} [INFO] (bootstrap - L:91) Selected network configuration: "default"
      15ms [Ib9b2e0120682a149] {4427} [INFO] (instance - L:503) Version=3.1.4, Changeset=513555d6c63dec7fd7166450282be92c6f74ef47
      15ms [Ib9b2e0120682a149] {4427} [INFO] (instance - L:504) Effective connection string: couchbase://172.31.36.38/other?username=Administrator&console_log_level=2&. Bucket=other
      15ms [Ic15f00f396a0e2a8] {4428} [INFO] (connection - L:485) <172.31.34.157:11210> (SOCK=de9b9766bb3b441f) Starting. Timeout=2500000us
      15ms [Ic15f00f396a0e2a8] {4428} [INFO] (connection - L:485) <172.31.36.182:11210> (SOCK=94a8ade79a64b8a5) Starting. Timeout=2500000us
      15ms [Ic15f00f396a0e2a8] {4428} [INFO] (connection - L:485) <172.31.39.206:11210> (SOCK=1117424d634a28d4) Starting. Timeout=2500000us
      15ms [Ic15f00f396a0e2a8] {4428} [INFO] (connection - L:485) <172.31.40.107:11210> (SOCK=e03a560f698b602c) Starting. Timeout=2500000us
      15ms [Ic15f00f396a0e2a8] {4428} [INFO] (connection - L:485) <172.31.42.32:11210> (SOCK=7a517988ba205275) Starting. Timeout=2500000us
      15ms [Ic15f00f396a0e2a8] {4428} [INFO] (connection - L:485) <172.31.43.197:11210> (SOCK=c7b87a986b005948) Starting. Timeout=2500000us
      15ms [Ic15f00f396a0e2a8] {4428} [INFO] (connection - L:485) <172.31.47.230:11210> (SOCK=b30dc60de24274b0) Starting. Timeout=2500000us
      16ms [Ic15f00f396a0e2a8] {4428} [INFO] (connection - L:153) <172.31.42.32:11210> (SOCK=7a517988ba205275) Connected established
      16ms [Ic15f00f396a0e2a8] {4428} [INFO] (connection - L:153) <172.31.34.157:11210> (SOCK=de9b9766bb3b441f) Connected established
      16ms [Ic15f00f396a0e2a8] {4428} [INFO] (connection - L:153) <172.31.40.107:11210> (SOCK=e03a560f698b602c) Connected established
      16ms [Ic15f00f396a0e2a8] {4428} [INFO] (connection - L:153) <172.31.43.197:11210> (SOCK=c7b87a986b005948) Connected established
      16ms [Ic15f00f396a0e2a8] {4428} [INFO] (connection - L:153) <172.31.39.206:11210> (SOCK=1117424d634a28d4) Connected established
      16ms [Ic15f00f396a0e2a8] {4428} [INFO] (connection - L:153) <172.31.36.182:11210> (SOCK=94a8ade79a64b8a5) Connected established
      16ms [Ic15f00f396a0e2a8] {4428} [INFO] (connection - L:153) <172.31.47.230:11210> (SOCK=b30dc60de24274b0) Connected established
      18ms [Ib9b2e0120682a149] {4427} [INFO] (instance - L:195) DNS SRV lookup failed: LCB_ERR_UNKNOWN_HOST (1049). Ignore this if not relying on DNS SRV records
      18ms [Ib9b2e0120682a149] {4427} [INFO] (bootstrap - L:272) Requested network configuration: heuristic
      18ms [Ib9b2e0120682a149] {4427} [INFO] (cccp - L:176) Requesting connection to node 172.31.36.38:11210 for CCCP configuration
      terminate called after throwing an instance of 'std::invalid_argument'
      18ms [Ib9b2e0120682a149] {4427} [INFO] (connection - L:485) <172.31.36.38:11210> (SOCK=7ce7fbf157f3b090) Starting. Timeout=2000000us
        what():  stol
      Aborted (core dumped)
      root@ip-172-31-53-185:~# 
      
      

      Only key-prefix with -2nd or -xnd will work

      Attachments

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

        Activity

          People

            avsej Sergey Avseyev
            thuan Thuan Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty