sanpwc commented on code in PR #3185:
URL: https://github.com/apache/ignite-3/pull/3185#discussion_r1483167167
##########
modules/table/src/integrationTest/java/org/apache/ignite/internal/rebalance/ItRebalanceDistributedTest.java:
##########
@@ -784,20 +780,23 @@ private void waitPartitionAssignmentsSyncedToExpected(int
partNum, int replicasN
(long) AWAIT_TIMEOUT_MILLIS * nodes.size()
));
- if (replicasNum == nodes.size()) {
- assertTrue(waitForCondition(
- () -> {
- try {
- return ((TableImpl)
nodes.get(0).tableManager.table(TABLE_NAME))
-
.internalTable().partitionRaftGroupService(partNum) != null;
- } catch (IgniteInternalException e) {
- // Raft group service not found.
- return false;
- }
- },
- (long) AWAIT_TIMEOUT_MILLIS * nodes.size()
- ));
- }
+ assertTrue(waitForCondition(
+ () -> {
+ try {
+ return nodes.stream().allMatch(n ->
+ n.tableManager
+ .latestTables()
+ .get(getTableId(n, TABLE_NAME))
+ .internalTable()
+ .partitionRaftGroupService(0) != null
Review Comment:
Yep, that should be partNum. 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]