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

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.6.2
    • 2.6.4
    • library
    • 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

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

          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

            mnunberg Mark Nunberg (Inactive)
            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