Description
I'm trying to implement support for READ_YOUR_WRITES for Impala, but I'm finding that if SetLatestObservedTimestamp() isn't called (eg. because we haven't interacted with Kudu yet in the current session and don't have a timestamp to set), attempting to scan tables always fails with an error of the form:
org.apache.kudu.client.NonRecoverableException: Snapshot timestamp is earlier than the ancient history mark. Consider increasing the value of the configuration parameter --tablet_history_max_age_sec. Snapshot timestamp: P: 0 usec, L: 1 Ancient History Mark: P: 1528845756599966 usec, L: 0 Physical time difference: -1528845756.600s
Minimal repro:
KuduClientBuilder b = new KuduClient.KuduClientBuilder("localhost"); KuduClient client = b.build(); KuduTable table = client.openTable("read_mode_test"); KuduScannerBuilder scannerBuilder = client.newScannerBuilder(table); scannerBuilder.readMode(AsyncKuduScanner.ReadMode.READ_YOUR_WRITES); KuduScanner scanner = scannerBuilder.build(); while (scanner.hasMoreRows()) { scanner.nextRows(); }
I'm using Kudu at git hash a954418
Attachments
Issue Links
- is related to
-
KUDU-2415 READ_YOUR_WRITES scan with no prior operation fails
- Closed