Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-1963

Java API doesn't allow backup cursors

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: WT2.6.1
    • Fix Version/s: WT2.7.0
    • Labels:
      None

      Description

      Note: Originally submitted in github by grogers0: Greg Rogers, see: https://github.com/wiredtiger/wiredtiger/issues/2017

      The java cursor implementation for next() always calls get_value_wrap() if the underlying cursor next() returns successfully. The get_value_wrap() function throws an exception if the underlying cursor get_value() returns non-zero. Backup cursors only yield values, not keys: the get_value() function returns ENOTSUP, and thus will always throw an exception when you call the java next().

      Probably the easiest way to fix it is to check if the value format is empty, and if so don't try to retrieve a value.

        Attachments

          Activity

            People

            • Assignee:
              donald.anderson Donald Anderson
              Reporter:
              donald.anderson Donald Anderson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: