Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-2473

READ_YOUR_WRITES error on snapshot timestamp

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: n/a
    • Component/s: impala
    • Labels:
      None

      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

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                twmarshall Thomas Tauber-Marshall
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: