Github user chtyim commented on a diff in the pull request:
https://github.com/apache/incubator-tephra/pull/23#discussion_r91466519
--- Diff:
tephra-core/src/main/java/org/apache/tephra/TransactionManager.java ---
@@ -917,6 +933,15 @@ private void doCommit(long transactionId, long
writePointer, Set<ChangeId> chang
invalidArray = invalid.toLongArray();
LOG.info("Tx invalid list: removed committed tx {}",
transactionId);
}
+ } else {
+ long[] checkpointPointers =
previous.getCheckpointWritePointers().toLongArray();
+ if (checkpointPointers != null && checkpointPointers.length > 0) {
+ // adjust the write pointer to be the last checkpoint of the tx
and remove all checkpoints from inProgress
+ writePointer = checkpointPointers[checkpointPointers.length - 1];
--- End diff --
yes :)
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---