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

vbuckettool help/usage needs improvement

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0
    • Fix Version/s: 3.0
    • Component/s: couchbase-bucket
    • Security Level: Public
    • Labels:
      None
    • Triage:
      Untriaged
    • Is this a Regression?:
      No

      Description

      key WRONG_KEY doesn't exist in bucket

      [root@cen-2708 tools]# curl http://localhost:8091/pools/default/buckets/default | ./vbuckettool - WRONG_KEY
      % Total % Received % Xferd Average Speed Time Time Time Current
      Dload Upload Total Spent Left Speed
      100 9837 100 9837 0 0 12047 0 -::- -::- -::- 1601k
      key: WRONG_KEY master: 10.3.121.66:11210 vBucketId: 739 couchApiBase: http://10.3.121.66:8092/default replicas: 10.3.121.63:11210

      description:

      ./vbuckettool
      vbuckettool mapfile key0 [key1 ... [keyN]]

      The vbuckettool expects a vBucketServerMap JSON mapfile, and
      will print the vBucketId and servers each key should live on.
      You may use '-' instead for the filename to specify stdin.

      Examples:
      ./vbuckettool file.json some_key another_key

      curl http://HOST:8091/pools/default/buckets/default | \
      ./vbuckettool - some_key another_key

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

        Activity

        Hide
        andreibaranouski Andrei Baranouski added a comment -

        if I set non-existent key, key will be stored in vbucket map?
        if it's so it's better to add such information in usage section

        Show
        andreibaranouski Andrei Baranouski added a comment - if I set non-existent key, key will be stored in vbucket map? if it's so it's better to add such information in usage section
        Hide
        steve Steve Yen added a comment -

        vbuckettool doesn't store/retrieve keys. It only hashes the key and computes which vbucket the key/item would have been assigned to, to help with diagnosis.

        Show
        steve Steve Yen added a comment - vbuckettool doesn't store/retrieve keys. It only hashes the key and computes which vbucket the key/item would have been assigned to, to help with diagnosis.
        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        Steve,

        can you please add more documentation to this tool ( usage ).
        the user who is unfamiliar with the tools might think that this tool also checks whether the key exists on the replica or active

        Show
        farshid Farshid Ghods (Inactive) added a comment - Steve, can you please add more documentation to this tool ( usage ). the user who is unfamiliar with the tools might think that this tool also checks whether the key exists on the replica or active
        Hide
        steve Steve Yen added a comment -

        Bin,
        This now looks like a usage string fix. vbuckettool source code is in libvbucket project, I think. Time to fix some c code!
        Thanks,
        Steve

        Show
        steve Steve Yen added a comment - Bin, This now looks like a usage string fix. vbuckettool source code is in libvbucket project, I think. Time to fix some c code! Thanks, Steve
        Hide
        maria Maria McDuff (Inactive) added a comment -

        Bin,

        any chance to fix this in 3.0? if not, pls indicate for deferral.
        pls advise.

        Show
        maria Maria McDuff (Inactive) added a comment - Bin, any chance to fix this in 3.0? if not, pls indicate for deferral. pls advise.
        Hide
        anil Anil Kumar added a comment -

        Needs some minor usage info to the tool.

        Show
        anil Anil Kumar added a comment - Needs some minor usage info to the tool.
        Hide
        mikew Mike Wiederhold added a comment -

        This tool no longer exists in 3.0.

        Show
        mikew Mike Wiederhold added a comment - This tool no longer exists in 3.0.

          People

          • Assignee:
            mikew Mike Wiederhold
            Reporter:
            andreibaranouski Andrei Baranouski
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes