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

Java API doesn't allow backup cursors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • WT2.6.1
    • WT2.7.0
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: