ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Artem Shutak (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (IGNITE-648) Implement framework for multi JVM unit tests
Date Thu, 02 Jul 2015 15:39:04 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14611855#comment-14611855
] 

Artem Shutak edited comment on IGNITE-648 at 7/2/15 3:38 PM:
-------------------------------------------------------------

Need to fix/implement next tests for multi jvm:
1. testLocalClearKeys
See cache.localClearAll(keysToRmv); - cannot unmarshal (need to investigate).
2. GridCachePartitionedMultiJvmCounterSelfTest tests
See checkNearAndPrimary and checkNearAndPrimaryMultiNode - should be fully rewritten.
3. testTtlNoTx and testTtlNoTxOldEntry (GridCacheNearOnlyMultiNodeFullApiSelfTest)
See checkTtl - should be fully rewritten (it use internalCache).
3.2 testReaderTtlTx and testReaderTtlNoTx
See checkReaderTtl - should be fully rewritten (it use internalCache).
4. testPutAllRemoveAll - 
Something wrong with test. Need to investigate (may be ignite bug).
{noformat}
junit.framework.AssertionFailedError: Expected: <null> but was: 1
    at junit.framework.Assert.fail(Assert.java:57)
    at junit.framework.Assert.assertTrue(Assert.java:22)
    at junit.framework.Assert.assertNull(Assert.java:277)
    at junit.framework.Assert.assertNull(Assert.java:268)
    at junit.framework.TestCase.assertNull(TestCase.java:438)
    at org.apache.ignite.internal.processors.cache.distributed.near.GridCachePartitionedMultiNodeFullApiSelfTest.testPutAllRemoveAll(GridCachePartitionedMultiNodeFullApiSelfTest.java:87)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at junit.framework.TestCase.runTest(TestCase.java:176)
    at org.apache.ignite.testframework.junits.GridAbstractTest.runTestInternal(GridAbstractTest.java:1457)
    at org.apache.ignite.testframework.junits.GridAbstractTest.access$000(GridAbstractTest.java:70)
    at org.apache.ignite.testframework.junits.GridAbstractTest$3.run(GridAbstractTest.java:1400)
------- Stdout: -------
[21:03:19,916][INFO ][main][root] >>> Starting test: testPutAllRemoveAll <<<
[21:03:19,920][INFO ][test-runner][root] >>>>> Grid0: 000fb1d7-9fe5-43f5-a003-cf87d791d000
[21:03:19,922][INFO ][test-runner][root] >>>>> Grid1: 46483468-7641-4deb-bb78-950b59dffcd8
[21:03:19,923][INFO ][test-runner][root] >>>>> Grid2: 77de4e4d-e2ea-42d1-90ed-881fb75261b2
[21:03:19,925][INFO ][test-runner][root] >>>>> Grid3: f2496d62-a075-4284-b959-658f723c3fad
[21:03:20,073][INFO ][test-runner][GridDeploymentLocalStore] Class locally deployed: class
org.apache.ignite.testframework.junits.multijvm.IgniteCacheProcessProxy$25
[21:03:20,081][INFO ][Thread-40][jvm-46483468] [21:03:20,081][INFO][ignite-#1%pub-multijvm.GridCachePartitionedCopyOnReadDisabledMultiJvmFullApiSelfTest1%][GridDeploymentLocalStore]
Class locally deployed: class org.apache.ignite.testframework.junits.multijvm.IgniteCacheProcessProxy$25
[21:03:20,285][INFO ][main][root] >>> Stopping test: testPutAllRemoveAll in 365 ms
<<<
[21:03:20,285][INFO ][main][root] Checking grid: 0
[21:03:20,296][INFO ][main][root] Size after [idx=0, size=0, keySize=0, primarySize=0, globalSize=0,
globalPrimarySize=0, entrySet=CacheLocalEntries []]
[21:03:20,296][INFO ][main][root] Checking grid: 1
[21:03:20,313][INFO ][main][root] Size after [idx=1, size=0, keySize=0, primarySize=0, globalSize=0,
globalPrimarySize=0, entrySet=[]]
[21:03:20,314][INFO ][main][root] Checking grid: 2
[21:03:20,331][INFO ][main][root] Size after [idx=2, size=0, keySize=0, primarySize=0, globalSize=0,
globalPrimarySize=0, entrySet=[]]
[21:03:20,333][INFO ][main][root] Checking grid: 3
[21:03:20,355][INFO ][main][root] Size after [idx=3, size=0, keySize=0, primarySize=0, globalSize=0,
globalPrimarySize=0, entrySet=[]]
------- Stderr: -------
[21:03:20,284][ERROR][main][root] Test failed.
junit.framework.AssertionFailedError: Expected: <null> but was: 1
    at junit.framework.Assert.fail(Assert.java:57)
    at junit.framework.Assert.assertTrue(Assert.java:22)
    at junit.framework.Assert.assertNull(Assert.java:277)
    at junit.framework.Assert.assertNull(Assert.java:268)
    at junit.framework.TestCase.assertNull(TestCase.java:438)
    at org.apache.ignite.internal.processors.cache.distributed.near.GridCachePartitionedMultiNodeFullApiSelfTest.testPutAllRemoveAll(GridCachePartitionedMultiNodeFullApiSelfTest.java:87)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at junit.framework.TestCase.runTest(TestCase.java:176)
    at org.apache.ignite.testframework.junits.GridAbstractTest.runTestInternal(GridAbstractTest.java:1457)
    at org.apache.ignite.testframework.junits.GridAbstractTest.access$000(GridAbstractTest.java:70)
    at org.apache.ignite.testframework.junits.GridAbstractTest$3.run(GridAbstractTest.java:1400)
{noformat}
5. GridCacheReplicatedNearOnlyMultiJvmFullApiSelfTest.testNearDhtKeySize - something strange.


was (Author: ashutak):
Need to fix/implement next tests for multi jvm:
1. testLocalClearKeys
See cache.localClearAll(keysToRmv); - cannot unmarshal (need to investigate).
2. GridCachePartitionedMultiJvmCounterSelfTest tests
See checkNearAndPrimary and checkNearAndPrimaryMultiNode - should be fully rewritten.
3. testTtlNoTx and testTtlNoTxOldEntry (GridCacheNearOnlyMultiNodeFullApiSelfTest)
See checkTtl - should be fully rewritten (it use internalCache).
3.2 testReaderTtlTx and testReaderTtlNoTx
See checkReaderTtl - should be fully rewritten (it use internalCache).
4. testPutAllRemoveAll - 
Something wrong with test. Need to investigate (may be ignite bug).
{noformat}
junit.framework.AssertionFailedError: Expected: <null> but was: 1
    at junit.framework.Assert.fail(Assert.java:57)
    at junit.framework.Assert.assertTrue(Assert.java:22)
    at junit.framework.Assert.assertNull(Assert.java:277)
    at junit.framework.Assert.assertNull(Assert.java:268)
    at junit.framework.TestCase.assertNull(TestCase.java:438)
    at org.apache.ignite.internal.processors.cache.distributed.near.GridCachePartitionedMultiNodeFullApiSelfTest.testPutAllRemoveAll(GridCachePartitionedMultiNodeFullApiSelfTest.java:87)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at junit.framework.TestCase.runTest(TestCase.java:176)
    at org.apache.ignite.testframework.junits.GridAbstractTest.runTestInternal(GridAbstractTest.java:1457)
    at org.apache.ignite.testframework.junits.GridAbstractTest.access$000(GridAbstractTest.java:70)
    at org.apache.ignite.testframework.junits.GridAbstractTest$3.run(GridAbstractTest.java:1400)
------- Stdout: -------
[21:03:19,916][INFO ][main][root] >>> Starting test: testPutAllRemoveAll <<<
[21:03:19,920][INFO ][test-runner][root] >>>>> Grid0: 000fb1d7-9fe5-43f5-a003-cf87d791d000
[21:03:19,922][INFO ][test-runner][root] >>>>> Grid1: 46483468-7641-4deb-bb78-950b59dffcd8
[21:03:19,923][INFO ][test-runner][root] >>>>> Grid2: 77de4e4d-e2ea-42d1-90ed-881fb75261b2
[21:03:19,925][INFO ][test-runner][root] >>>>> Grid3: f2496d62-a075-4284-b959-658f723c3fad
[21:03:20,073][INFO ][test-runner][GridDeploymentLocalStore] Class locally deployed: class
org.apache.ignite.testframework.junits.multijvm.IgniteCacheProcessProxy$25
[21:03:20,081][INFO ][Thread-40][jvm-46483468] [21:03:20,081][INFO][ignite-#1%pub-multijvm.GridCachePartitionedCopyOnReadDisabledMultiJvmFullApiSelfTest1%][GridDeploymentLocalStore]
Class locally deployed: class org.apache.ignite.testframework.junits.multijvm.IgniteCacheProcessProxy$25
[21:03:20,285][INFO ][main][root] >>> Stopping test: testPutAllRemoveAll in 365 ms
<<<
[21:03:20,285][INFO ][main][root] Checking grid: 0
[21:03:20,296][INFO ][main][root] Size after [idx=0, size=0, keySize=0, primarySize=0, globalSize=0,
globalPrimarySize=0, entrySet=CacheLocalEntries []]
[21:03:20,296][INFO ][main][root] Checking grid: 1
[21:03:20,313][INFO ][main][root] Size after [idx=1, size=0, keySize=0, primarySize=0, globalSize=0,
globalPrimarySize=0, entrySet=[]]
[21:03:20,314][INFO ][main][root] Checking grid: 2
[21:03:20,331][INFO ][main][root] Size after [idx=2, size=0, keySize=0, primarySize=0, globalSize=0,
globalPrimarySize=0, entrySet=[]]
[21:03:20,333][INFO ][main][root] Checking grid: 3
[21:03:20,355][INFO ][main][root] Size after [idx=3, size=0, keySize=0, primarySize=0, globalSize=0,
globalPrimarySize=0, entrySet=[]]
------- Stderr: -------
[21:03:20,284][ERROR][main][root] Test failed.
junit.framework.AssertionFailedError: Expected: <null> but was: 1
    at junit.framework.Assert.fail(Assert.java:57)
    at junit.framework.Assert.assertTrue(Assert.java:22)
    at junit.framework.Assert.assertNull(Assert.java:277)
    at junit.framework.Assert.assertNull(Assert.java:268)
    at junit.framework.TestCase.assertNull(TestCase.java:438)
    at org.apache.ignite.internal.processors.cache.distributed.near.GridCachePartitionedMultiNodeFullApiSelfTest.testPutAllRemoveAll(GridCachePartitionedMultiNodeFullApiSelfTest.java:87)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at junit.framework.TestCase.runTest(TestCase.java:176)
    at org.apache.ignite.testframework.junits.GridAbstractTest.runTestInternal(GridAbstractTest.java:1457)
    at org.apache.ignite.testframework.junits.GridAbstractTest.access$000(GridAbstractTest.java:70)
    at org.apache.ignite.testframework.junits.GridAbstractTest$3.run(GridAbstractTest.java:1400)
{noformat}
5. 

> Implement framework for multi JVM unit tests
> --------------------------------------------
>
>                 Key: IGNITE-648
>                 URL: https://issues.apache.org/jira/browse/IGNITE-648
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Yakov Zhdanov
>            Assignee: Artem Shutak
>            Priority: Critical
>             Fix For: sprint-7
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message