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

cbc-incr only supports 32 bit ints

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.2
    • Fix Version/s: 2.6.4
    • Component/s: library
    • Labels:
      None

      Description

      When trying to initial a counter with any value equal or over 32bit max int (4294967296) the following error is generated:

      $ cbc incr count_max --initial 18446744073709551610 --delta 1                         
      Couldn't parse options: Value too large
      Bad value '' for initial
      

      Couchbase Server supports counters up to 64bit max int and I can set that via the python SDK using libcouchbase.

        Attachments

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

          Activity

          Hide
          mnunberg Mark Nunberg (Inactive) added a comment -

          This is due to the command line parser being used, which only supports up to 32 bit integers.

          Show
          mnunberg Mark Nunberg (Inactive) added a comment - This is due to the command line parser being used, which only supports up to 32 bit integers.

            People

            • Assignee:
              mnunberg Mark Nunberg (Inactive)
              Reporter:
              pvarley Patrick Varley
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.