-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
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.