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

mbrestore doesn't restore highest-order 31st bit of flags correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.7.0
    • 1.7 beta
    • couchbase-bucket
    • Security Level: Public
    • None

    Description

      mbrestore (1.6.5.4) would complain about things like...

      OverflowError: can't convert negative number to unsigned long
      Traceback (most recent call last):
      File "/opt/membase/lib/python/mbrestore", line 73, in worker
      update(str(k), exptime, socket.ntohl(flags), bytearray(v))

      The socket.ntohl doesn't like flags that have the highest-order bit set, such as flags of 0x8000000 and higher.

      Bin was pointing at some ctypes-related fix for this.

      Attachments

        For Gerrit Dashboard: MB-3907
        # Subject Branch Project Status CR V

        Activity

          People

            bcui Bin Cui (Inactive)
            steve Steve Yen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty