You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "sanpwc (via GitHub)" <gi...@apache.org> on 2025/05/07 07:52:32 UTC

[PR] IGNITE-25269 Await empty pending assignments within ItRebalanceDistributedTest. [ignite-3]

sanpwc opened a new pull request, #5766:
URL: https://github.com/apache/ignite-3/pull/5766

   https://issues.apache.org/jira/browse/IGNITE-25269


-- 
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: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] IGNITE-25269 Await empty pending assignments within ItRebalanceDistributedTest. [ignite-3]

Posted by "sanpwc (via GitHub)" <gi...@apache.org>.
sanpwc merged PR #5766:
URL: https://github.com/apache/ignite-3/pull/5766


-- 
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: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] IGNITE-25269 Await empty pending assignments within ItRebalanceDistributedTest. [ignite-3]

Posted by "sanpwc (via GitHub)" <gi...@apache.org>.
sanpwc commented on code in PR #5766:
URL: https://github.com/apache/ignite-3/pull/5766#discussion_r2077277834


##########
modules/distribution-zones/src/integrationTest/java/org/apache/ignite/internal/rebalance/ItRebalanceDistributedTest.java:
##########
@@ -1087,14 +1088,18 @@ private static Set<Assignment> getPartitionStableAssignments(Node node, String t
                 .orElse(Set.of());
     }
 
-    private static Set<Assignment> getPartitionPendingAssignments(Node node, int partNum) {
-        TableViewInternal table = unwrapTableViewInternal(node.tableManager.table(TABLE_NAME));
+    private static Set<Assignment> getPartitionPendingAssignments(Node node, String tableName, int partNum) {
+        TableViewInternal table = unwrapTableViewInternal(node.tableManager.table(tableName));
 
         return Optional
                 .ofNullable(pendingPartitionAssignments(node.metaStorageManager, table, partNum).join())

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: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] IGNITE-25269 Await empty pending assignments within ItRebalanceDistributedTest. [ignite-3]

Posted by "alievmirza (via GitHub)" <gi...@apache.org>.
alievmirza commented on code in PR #5766:
URL: https://github.com/apache/ignite-3/pull/5766#discussion_r2077264966


##########
modules/distribution-zones/src/integrationTest/java/org/apache/ignite/internal/rebalance/ItRebalanceDistributedTest.java:
##########
@@ -1087,14 +1088,18 @@ private static Set<Assignment> getPartitionStableAssignments(Node node, String t
                 .orElse(Set.of());
     }
 
-    private static Set<Assignment> getPartitionPendingAssignments(Node node, int partNum) {
-        TableViewInternal table = unwrapTableViewInternal(node.tableManager.table(TABLE_NAME));
+    private static Set<Assignment> getPartitionPendingAssignments(Node node, String tableName, int partNum) {
+        TableViewInternal table = unwrapTableViewInternal(node.tableManager.table(tableName));
 
         return Optional
                 .ofNullable(pendingPartitionAssignments(node.metaStorageManager, table, partNum).join())

Review Comment:
   May I ask you to rewrite 3 places in this class where we call `.join()` on a future to something like 
   
   ```
           CompletableFuture<Set<Assignment>> fut = stablePartitionAssignments(node.metaStorageManager, table, partNum);
           
           assertThat(fut, willCompleteSuccessfully());
           
           return Optional
                   .ofNullable(fut.join())
                   .orElse(Set.of());
   
   ```
   ?



-- 
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: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org