sashapolo commented on code in PR #5310:
URL: https://github.com/apache/ignite-3/pull/5310#discussion_r1975246237
##########
modules/partition-replicator/src/main/java/org/apache/ignite/internal/partition/replicator/raft/ZonePartitionRaftListener.java:
##########
@@ -305,15 +302,23 @@ private IgniteBiTuple<Serializable, Boolean>
processTableAwareCommand(
@Override
public void onConfigurationCommitted(RaftGroupConfiguration config, long
lastAppliedIndex, long lastAppliedTerm) {
synchronized (tableProcessorsStateLock) {
- tableProcessors.values()
- .forEach(listener ->
listener.onConfigurationCommitted(config, lastAppliedIndex, lastAppliedTerm));
+ partitionSnapshots().acquireReadLock();
+
+ try {
+ tableProcessors.values()
+ .forEach(listener ->
listener.onConfigurationCommitted(config, lastAppliedIndex, lastAppliedTerm));
+ } finally {
+ partitionSnapshots().releaseReadLock();
+ }
byte[] configBytes =
raftGroupConfigurationConverter.toBytes(config);
txStateStorage.committedGroupConfiguration(configBytes,
lastAppliedIndex, lastAppliedTerm);
this.lastAppliedIndex = max(this.lastAppliedIndex,
lastAppliedIndex);
this.lastAppliedTerm = max(this.lastAppliedTerm, lastAppliedTerm);
+
+ updateTrackerIgnoringTrackerClosedException(storageIndexTracker,
config.index());
Review Comment:
```suggestion
updateTrackerIgnoringTrackerClosedException(storageIndexTracker,
lastAppliedIndex);
```
--
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]