[ 
https://issues.apache.org/jira/browse/KUDU-2473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16510470#comment-16510470
 ] 

Hao Hao commented on KUDU-2473:
-------------------------------

I think this is the same issue as KUDU-2415. Some relevant discussion on slackĀ 
https://getkudu.slack.com/archives/C0CPXJ3CH/p1524614543000021.

> READ_YOUR_WRITES error on snapshot timestamp
> --------------------------------------------
>
>                 Key: KUDU-2473
>                 URL: https://issues.apache.org/jira/browse/KUDU-2473
>             Project: Kudu
>          Issue Type: Bug
>          Components: impala
>            Reporter: Thomas Tauber-Marshall
>            Priority: Critical
>
> 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:
> {noformat}
> 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();
> }
> {noformat}
> I'm using Kudu at git hash a954418



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to