-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IGNITE-22621 Implement transaction storage for the zone replica listener #5187
Conversation
824c6ac
to
fd09468
Compare
...rc/integrationTest/java/org/apache/ignite/internal/rebalance/ItRebalanceDistributedTest.java
Outdated
Show resolved
Hide resolved
...rc/integrationTest/java/org/apache/ignite/internal/rebalance/ItRebalanceDistributedTest.java
Show resolved
Hide resolved
.../src/integrationTest/java/org/apache/ignite/internal/partition/replicator/fixtures/Node.java
Outdated
Show resolved
Hide resolved
...ain/java/org/apache/ignite/internal/partition/replicator/raft/ZonePartitionRaftListener.java
Outdated
Show resolved
Hide resolved
...ain/java/org/apache/ignite/internal/partition/replicator/raft/ZonePartitionRaftListener.java
Outdated
Show resolved
Hide resolved
...ain/java/org/apache/ignite/internal/partition/replicator/raft/ZonePartitionRaftListener.java
Outdated
Show resolved
Hide resolved
...ain/java/org/apache/ignite/internal/partition/replicator/raft/ZonePartitionRaftListener.java
Outdated
Show resolved
Hide resolved
...ain/java/org/apache/ignite/internal/partition/replicator/raft/ZonePartitionRaftListener.java
Show resolved
Hide resolved
...tor/src/main/java/org/apache/ignite/internal/partition/replicator/ReplicaListenerHelper.java
Outdated
Show resolved
Hide resolved
...ain/java/org/apache/ignite/internal/partition/replicator/raft/ZonePartitionRaftListener.java
Show resolved
Hide resolved
...r/src/main/java/org/apache/ignite/internal/partition/replicator/ReliableCatalogVersions.java
Show resolved
Hide resolved
...licator/src/main/java/org/apache/ignite/internal/partition/replicator/ReplicaTxFinisher.java
Outdated
Show resolved
Hide resolved
...licator/src/main/java/org/apache/ignite/internal/partition/replicator/ReplicaTxFinisher.java
Outdated
Show resolved
Hide resolved
...main/java/org/apache/ignite/internal/partition/replicator/TxFinishReplicaRequestHandler.java
Outdated
Show resolved
Hide resolved
...main/java/org/apache/ignite/internal/partition/replicator/TxFinishReplicaRequestHandler.java
Show resolved
Hide resolved
...n/java/org/apache/ignite/internal/partition/replicator/PartitionReplicaLifecycleManager.java
Show resolved
Hide resolved
...-replicator/src/main/java/org/apache/ignite/internal/partition/replicator/ResultWrapper.java
Outdated
Show resolved
Hide resolved
...ain/java/org/apache/ignite/internal/partition/replicator/raft/ZonePartitionRaftListener.java
Show resolved
Hide resolved
...ain/java/org/apache/ignite/internal/partition/replicator/raft/ZonePartitionRaftListener.java
Show resolved
Hide resolved
...ain/java/org/apache/ignite/internal/partition/replicator/raft/ZonePartitionRaftListener.java
Show resolved
Hide resolved
...main/java/org/apache/ignite/internal/partition/replicator/TxFinishReplicaRequestHandler.java
Outdated
Show resolved
Hide resolved
...main/java/org/apache/ignite/internal/partition/replicator/TxFinishReplicaRequestHandler.java
Outdated
Show resolved
Hide resolved
...tionTest/java/org/apache/ignite/internal/partition/replicator/ItZoneDataReplicationTest.java
Outdated
Show resolved
Hide resolved
...tionTest/java/org/apache/ignite/internal/partition/replicator/ItZoneDataReplicationTest.java
Show resolved
Hide resolved
...tionTest/java/org/apache/ignite/internal/partition/replicator/ItZoneDataReplicationTest.java
Outdated
Show resolved
Hide resolved
@@ -460,37 +460,44 @@ void txFinishCommandGetsReplicated(boolean commit) throws Exception { | |||
)); | |||
} | |||
|
|||
List<CountExpectation> expectations = new ArrayList<>(); | |||
List<Executable> assertions = new ArrayList<>(); | |||
for (int i = 0; i < cluster.size(); i++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use IntStream.range().collect(toList())
here instead of a cycle, this will save some code, like finalI
. Current approach is also fine.
...r/src/main/java/org/apache/ignite/internal/partition/replicator/ReliableCatalogVersions.java
Outdated
Show resolved
Hide resolved
@@ -526,24 +537,45 @@ private CompletableFuture<?> createZonePartitionReplicationNode( | |||
rebalanceRetryDelayConfiguration | |||
); | |||
|
|||
var safeTimeTracker = new SafeTimeValuesTracker(HybridTimestamp.MIN_VALUE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we move all this stuff inside the Supplier
as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not? Its only used inside it
https://issues.apache.org/jira/browse/IGNITE-22621