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

tools - cbtransfer fails to upgrade 1.8.1 sqlite db files into 2.0 couchstore files when data flag is non zero

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta-2
    • Fix Version/s: 2.0
    • Component/s: tools
    • Security Level: Public
    • Labels:
      None

      Description

      test to upgrade 1.8.1 to build 1965 on windows.
      On 1.8.1 setup, populate a few items to set flags as:
      import mc_bin_client
      client = mc_bin_client.MemcachedClient('localhost', 11211) #source
      for i in range (5):
      client.set("bin%d"%, 0, 100000+i, "hello world")

      And i have the following errors during installation:

      Copying C:\Users\ADMINI~1\AppData\Local\Temp\2\backup-11-26-2012-16-59-22\config
      \config.dat
      cp C:\Users\ADMINI~1\AppData\Local\Temp\2\backup-11-26-2012-16-59-22\config\
      config.dat C:\t5\bin\install\..\..\var\lib\couchbase\config\config.dat
      Ensuring bucket data directories.
      Ensuring bucket data directory: c:/t5/var/lib/couchbase/data/default
      mkdir -p c:/t5/var/lib/couchbase/data/default
      Upgrading buckets.
      Upgrading bucket: default
      C:\t5\bin\install\..\cbtransfer.exe c:/t5/var/lib/couchbase/data/default-dat
      a/default couchstore-files://c:/t5/var/lib/couchbase/data -b default --source-vb
      ucket-state=active --destination-vbucket-state=active
      cbdbupgrade pid: 3720
      Exception in thread s0:] 0.0% (0/5 msgs)
      Traceback (most recent call last):
      File "threading.pyc", line 551, in __bootstrap_inner
      File "threading.pyc", line 504, in run
      File "pump_sfd.pyc", line 281, in run
      error: integer out of range for 'I' format code

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

        Activity

        Hide
        bcui Bin Cui added a comment -

        Using sqlite shell tool to read sqlite db file, it shows something like:

        963|0|bin3|-1551499008|0|4|hello world
        So it means that flag is saved in network byte order in the sqlite db file.

        Show
        bcui Bin Cui added a comment - Using sqlite shell tool to read sqlite db file, it shows something like: 963|0|bin3|-1551499008|0|4|hello world So it means that flag is saved in network byte order in the sqlite db file.
        Hide
        steve Steve Yen added a comment -
        Show
        steve Steve Yen added a comment - http://review.couchbase.org/22833

          People

          • Assignee:
            bcui Bin Cui
            Reporter:
            bcui Bin Cui
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes