Github user chtyim commented on a diff in the pull request:
https://github.com/apache/incubator-tephra/pull/53#discussion_r138564293
--- 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 --
Actually not. Just notice it is used outside of writer sync block.
---