denis-chudov commented on code in PR #3591:
URL: https://github.com/apache/ignite-3/pull/3591#discussion_r1569184089
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/raft/PartitionListener.java:
##########
@@ -609,14 +616,32 @@ void handleBuildIndexCommand(BuildIndexCommand cmd, long
commandIndex, long comm
* @param commandTerm Command term.
*/
private void handlePrimaryReplicaChangeCommand(PrimaryReplicaChangeCommand
cmd, long commandIndex, long commandTerm) {
- // Skips the write command because the storage has already executed it.
+ // Skips the write cmd because the storage has already executed it.
if (commandIndex <= storage.lastAppliedIndex()) {
return;
}
txStateStorage.updateLease(cmd.leaseStartTime(), commandIndex,
commandTerm);
}
+ /**
+ * Handler for {@link VacuumTxStatesCommand}.
+ *
+ * @param cmd Command.
+ * @param commandIndex Command index.
+ * @param commandTerm Command term.
+ */
+ private void handleVacuumTxStatesCommand(VacuumTxStatesCommand cmd, long
commandIndex, long commandTerm) {
+ // Skips the write cmd because the storage has already executed it.
+ if (commandIndex <= storage.lastAppliedIndex()) {
+ return;
+ }
+
+ for (UUID txId : cmd.txIds()) {
+ txStateStorage.remove(txId, commandIndex, commandTerm);
Review Comment:
fixed
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]