This is an automated email from the ASF dual-hosted git repository.

ipavlukhin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new ba42b59  Extend test coverage [IGNITE-11967] control.sh 
validate_indexes SQL Index issue must contain information about cache group - 
Fixes #6996.
ba42b59 is described below

commit ba42b597d8bd554a95e520547714b7caa3fe0965
Author: ktkalenko <[email protected]>
AuthorDate: Tue Nov 19 12:19:21 2019 +0300

    Extend test coverage [IGNITE-11967] control.sh validate_indexes SQL Index 
issue must contain information about cache group - Fixes #6996.
    
    Signed-off-by: ipavlukhin <[email protected]>
---
 .../GridCommandHandlerIndexingClusterByClassTest.java | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git 
a/modules/indexing/src/test/java/org/apache/ignite/util/GridCommandHandlerIndexingClusterByClassTest.java
 
b/modules/indexing/src/test/java/org/apache/ignite/util/GridCommandHandlerIndexingClusterByClassTest.java
index 8dcac5d..8833fbc 100644
--- 
a/modules/indexing/src/test/java/org/apache/ignite/util/GridCommandHandlerIndexingClusterByClassTest.java
+++ 
b/modules/indexing/src/test/java/org/apache/ignite/util/GridCommandHandlerIndexingClusterByClassTest.java
@@ -105,6 +105,25 @@ public class GridCommandHandlerIndexingClusterByClassTest 
extends GridCommandHan
     }
 
     /**
+     * Checks that missing lines were detected in CacheDataTree with the output
+     * of cache group name and id.
+     */
+    @Test
+    public void 
testBrokenCacheDataTreeShouldFailValidationWithCacheGroupInfo() {
+        breakCacheDataTree(crd, CACHE_NAME, 1);
+
+        injectTestSystemOut();
+
+        assertEquals(EXIT_CODE_OK, execute("--cache", "validate_indexes", 
CACHE_NAME));
+
+        assertContains(
+            log,
+            testOut.toString(),
+            "[cacheGroup=group1, cacheGroupId=-1237460590, 
cache=persons-cache-vi, cacheId=-528791027, idx=_key_PK]"
+        );
+    }
+
+    /**
      * Tests that missing rows in H2 indexes are detected.
      */
     @Test

Reply via email to