sanpwc commented on code in PR #4215:
URL: https://github.com/apache/ignite-3/pull/4215#discussion_r1713318705


##########
modules/metastorage/src/integrationTest/java/org/apache/ignite/internal/metastorage/server/raft/ItMetaStorageRaftGroupTest.java:
##########
@@ -316,22 +326,24 @@ public void onNext(Entry item) {
                                         .stopAsync(componentContext);
                                 assertThat(stopFuture, 
willCompleteSuccessfully());
 
-                                
raftGroupServiceOfLiveServer.refreshLeader().get();
+                                CompletableFuture<LeaderWithTerm> 
newLeaderWithTermFut = raftGroupServiceOfLiveServer
+                                        .refreshAndGetLeaderWithTerm();
+                                assertThat(newLeaderWithTermFut, 
willCompleteSuccessfully());
+                                LeaderWithTerm newLeaderWithTerm = 
newLeaderWithTermFut.join();
 
-                                assertNotSame(oldLeaderId, 
raftGroupServiceOfLiveServer.leader().consistentId());
+                                assertNotSame(oldLeaderId, 
newLeaderWithTerm.leader().consistentId());
 
-                                // ensure that leader has been changed only 
once
-                                assertTrue(
-                                        waitForCondition(() -> 
replicatorStartedCounter.get() == 4, 5_000),

Review Comment:
   But since we do wait for refresh leader completeness prior to range() now - 
explicit majority awaiting logic based on replicaStartedCounter is no longer 
needer, WDYT? 



##########
modules/metastorage/src/integrationTest/java/org/apache/ignite/internal/metastorage/server/raft/ItMetaStorageRaftGroupTest.java:
##########
@@ -224,7 +224,6 @@ public void afterTest() {
      * @throws Exception If failed.
      */
     @Test
-    @Disabled("https://issues.apache.org/jira/browse/IGNITE-22891";)

Review Comment:
   Yep, makes sense. Thanks!



-- 
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]

Reply via email to