ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Veselovsky (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-3063) IgfsClientCacheSelfTest.testFormat flakily fails
Date Wed, 27 Apr 2016 17:52:12 GMT
Ivan Veselovsky created IGNITE-3063:
---------------------------------------

             Summary:  IgfsClientCacheSelfTest.testFormat flakily fails
                 Key: IGNITE-3063
                 URL: https://issues.apache.org/jira/browse/IGNITE-3063
             Project: Ignite
          Issue Type: Bug
          Components: IGFS
    Affects Versions: 1.5.0.final
            Reporter: Ivan Veselovsky
            Assignee: Ivan Veselovsky
             Fix For: 1.6


 IgfsClientCacheSelfTest.testFormat flakily fails . 
Main problems with format() operation were fixed in IGNITE-586, but this problem is different:
test fails in the very beginning, because number of entries in data cache is greater than
zero. That is, the problem is that clean up performed after previous test has failed to clean
up data cache completely. The cleanup mechanism and method of caches emptiness assertion should
be re-implemented, because in #clean() method we use getMetaCache(igfs).keySet() and getDataCache(igfs).size()
methods , that return only the number of *local* entries, while in the beginning of #testFormat()
method we use dataCache.size(new CachePeekMode[] {CachePeekMode.ALL}); , that returns all
the entries, and this assertion fails.

{code}
------- Stdout: -------
[13:50:10,335][INFO ][main][root] >>> Starting test: IgfsClientCacheSelfTest#testFormat
<<<
[13:50:10,338][INFO ][main][root] >>> Stopping test: IgfsClientCacheSelfTest#testFormat
in 3 ms <<<
------- Stderr: -------
[13:50:10,338][ERROR][main][root] Test failed.
java.lang.AssertionError: Initial data cache size = 2
    at org.apache.ignite.internal.processors.igfs.IgfsAbstractSelfTest.testFormat(IgfsAbstractSelfTest.java:983)
    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:606)
    at junit.framework.TestCase.runTest(TestCase.java:176)
    at org.apache.ignite.testframework.junits.GridAbstractTest.runTestInternal(GridAbstractTest.java:1759)
    at org.apache.ignite.testframework.junits.GridAbstractTest.access$000(GridAbstractTest.java:118)
    at org.apache.ignite.testframework.junits.GridAbstractTest$4.run(GridAbstractTest.java:1697)
    at java.lang.Thread.run(Thread.java:745)

{code}



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

Mime
View raw message