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

CBTransfer sane error message when reading unsupported files.

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Minor
    • 4.0.0
    • 3.0.2
    • tools
    • Security Level: Public

    Description

      cbtransfer does not support reading couchstore files from older versions. If a user uses happens to do this they will get a traceback with no indication of what the issue is.

      Traceback (most recent call last):
      File "_ctypes/callbacks.c", line 314, in 'calling callback function'
      File "/opt/couchbase/lib/python/couchstore.py", line 408, in callback
      fn(DocumentInfo._fromStruct(docInfoPtr.contents, self))
      File "/opt/couchbase/lib/python/pump_sfd.py", line 218, in change_callback
      cas, exp, flg, flex_meta, dtype = struct.unpack(SFD_REV_META, doc_info.revMeta)
      struct.error: unpack requires a string argument of length 18
      Traceback (most recent call last):^C

      cbtransfer should instead report an clear error message, saying something like this maybe:

      Error: Cannot read file X because it is version Y. Can only read version Z

      Attachments

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

        Activity

          People

            bcui Bin Cui (Inactive)
            pvarley Patrick Varley (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty