You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/12/20 03:56:16 UTC
[GitHub] [pulsar] liangyepianzhou commented on a diff in pull request #18273: [feat][txn] implement the SnapshotSegmentAbortedTxnProcessor
liangyepianzhou commented on code in PR #18273:
URL: https://github.com/apache/pulsar/pull/18273#discussion_r1052881061
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/transaction/buffer/impl/SingleSnapshotAbortedTxnProcessorImpl.java:
##########
@@ -56,8 +56,8 @@ public SingleSnapshotAbortedTxnProcessorImpl(PersistentTopic topic) {
}
@Override
- public void putAbortedTxnAndPosition(TxnID abortedTxnId, PositionImpl position) {
- aborts.put(abortedTxnId, position);
+ public void putAbortedTxnAndPosition(TxnID abortedTxnId, PositionImpl abortedMarkerPersistentPosition) {
+ aborts.put(abortedTxnId, this.topic.getMaxReadPosition());
Review Comment:
This is the original single snapshot aborted processor which stores the aborted txns and maxReadPosition.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org