[
https://issues.apache.org/jira/browse/IGNITE-3693?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15422660#comment-15422660
]
Taras Ledkov commented on IGNITE-3693:
--------------------------------------
Root cause: IgfsOutputStreamImpl#write is asynchronous. So, with DUAL_ASYNC
mode the IgfsFile.info().length() returns the not final size of the file in
spite of output stream has been closed.
> IgfsLocalSecondaryFileSystemDualAsyncSelfTest.testFormat fails.
> ---------------------------------------------------------------
>
> Key: IGNITE-3693
> URL: https://issues.apache.org/jira/browse/IGNITE-3693
> Project: Ignite
> Issue Type: Bug
> Components: IGFS
> Affects Versions: 1.7
> Reporter: Vladimir Ozerov
> Assignee: Taras Ledkov
> Fix For: 1.8
>
>
> Sample failure:
> http://149.202.210.143:8111/viewLog.html?buildId=299667&tab=buildResultsDiv&buildTypeId=IgniteTests_IgniteGgfs
> Stack trace:
> {code}
> java.lang.AssertionError: null
> at
> org.apache.ignite.internal.processors.igfs.IgfsAbstractSelfTest.testFormat(IgfsAbstractSelfTest.java:1079)
> 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:1760)
> at
> org.apache.ignite.testframework.junits.GridAbstractTest.access$000(GridAbstractTest.java:118)
> at
> org.apache.ignite.testframework.junits.GridAbstractTest$4.run(GridAbstractTest.java:1698)
> at java.lang.Thread.run(Thread.java:745)
> ------- Stdout: -------
> [09:18:08,853][INFO ][main][root] >>> Starting test:
> IgfsLocalSecondaryFileSystemDualAsyncSelfTest#testFormat <<<
> [09:18:08,873][INFO ][main][root] >>> Stopping test:
> IgfsLocalSecondaryFileSystemDualAsyncSelfTest#testFormat in 19 ms <<<
> ------- Stderr: -------
> [09:18:08,872][ERROR][main][root] Test failed.
> java.lang.AssertionError
> at
> org.apache.ignite.internal.processors.igfs.IgfsAbstractSelfTest.testFormat(IgfsAbstractSelfTest.java:1079)
> 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:1760)
> at
> org.apache.ignite.testframework.junits.GridAbstractTest.access$000(GridAbstractTest.java:118)
> at
> org.apache.ignite.testframework.junits.GridAbstractTest$4.run(GridAbstractTest.java:1698)
> at java.lang.Thread.run(Thread.java:745)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)