Github user chtyim commented on a diff in the pull request:
https://github.com/apache/incubator-tephra/pull/53#discussion_r138565633
--- Diff: tephra-core/src/main/java/org/apache/tephra/persist/AbstractTransactionLog.java
---
@@ -48,21 +52,30 @@
protected long timestamp;
private volatile boolean initialized;
private volatile boolean closed;
+ private AtomicLong writtenUpTo = new AtomicLong();
private AtomicLong syncedUpTo = new AtomicLong();
--- End diff --
or a `volatile long` also work since we only use `get` and `set`.
---
|