IGNITE-4800: Lucene query may fails with NPE. Test fixed.
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/3fdf453e Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/3fdf453e Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/3fdf453e Branch: refs/heads/ignite-5947 Commit: 3fdf453e89a7bd76dff6b6d0646e3821ea3921d5 Parents: 1e08c3f Author: Andrey V. Mashenkov <[email protected]> Authored: Mon Jul 31 17:32:12 2017 +0300 Committer: Andrey V. Mashenkov <[email protected]> Committed: Mon Jul 31 17:32:12 2017 +0300 ---------------------------------------------------------------------- .../cache/IgniteCacheFullTextQueryNodeJoiningSelfTest.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/3fdf453e/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheFullTextQueryNodeJoiningSelfTest.java ---------------------------------------------------------------------- diff --git a/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheFullTextQueryNodeJoiningSelfTest.java b/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheFullTextQueryNodeJoiningSelfTest.java index ed092df..162b1e5 100644 --- a/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheFullTextQueryNodeJoiningSelfTest.java +++ b/modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheFullTextQueryNodeJoiningSelfTest.java @@ -42,7 +42,6 @@ import static org.apache.ignite.cache.CacheMode.PARTITIONED; import static org.apache.ignite.cache.CacheWriteSynchronizationMode.FULL_SYNC; /** - * TODO https://issues.apache.org/jira/browse/IGNITE-2229 * Tests cache in-place modification logic with iterative value increment. */ public class IgniteCacheFullTextQueryNodeJoiningSelfTest extends GridCommonAbstractTest { @@ -107,6 +106,8 @@ public class IgniteCacheFullTextQueryNodeJoiningSelfTest extends GridCommonAbstr * @throws Exception If failed. */ public void testFullTextQueryNodeJoin() throws Exception { + fail("https://issues.apache.org/jira/browse/IGNITE-2229"); + for (int r = 0; r < 5; r++) { startGrids(GRID_CNT); @@ -119,10 +120,6 @@ public class IgniteCacheFullTextQueryNodeJoiningSelfTest extends GridCommonAbstr Ignite started = startGrid(GRID_CNT); - //TODO: remove next line when IGNITE-2229 issue will be fixed. - // see https://issues.apache.org/jira/browse/IGNITE-2229 - awaitPartitionMapExchange(); - for (int i = 0; i < 100; i++) { QueryCursor<Cache.Entry<AffinityKey<Integer>, IndexedEntity>> res = started.cache(DEFAULT_CACHE_NAME) .query(new TextQuery<AffinityKey<Integer>, IndexedEntity>(IndexedEntity.class, "indexed"));
