tkalkirill commented on code in PR #2704:
URL: https://github.com/apache/ignite-3/pull/2704#discussion_r1363337881


##########
modules/index/src/test/java/org/apache/ignite/internal/index/IndexBuildControllerTest.java:
##########
@@ -179,10 +181,43 @@ void testStopBuildIndexesOnChangePrimaryReplica() {
         verify(indexBuilder).stopBuildingIndexes(tableId(), PARTITION_ID);
     }
 
+    @Test
+    void 
testStartBuildIndexesOnPrimaryReplicaElectedOnlyForRegisteredIndexes() {
+        createIndex(INDEX_NAME);
+
+        int indexId = indexId(INDEX_NAME);
+
+        makeIndexAvailable(indexId);
+
+        setPrimaryReplicaWitchExpireInOneSecond(PARTITION_ID, NODE_NAME, 
clock.now());
+
+        verify(indexBuilder, never()).scheduleBuildIndex(

Review Comment:
   I understand your proposal, but in my case a wide matchers check will not 
work.



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