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

Java API doesn't allow backup cursors

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • WT2.7.0
    • Affects Version/s: WT2.6.1
    • Component/s: None
    • None

      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.

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

              Created:
              Updated:
              Resolved: