You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/07/29 12:53:20 UTC
[jira] [Commented] (FLINK-4276)
TextInputFormatTest.testNestedFileRead fails on Windows OS
[ https://issues.apache.org/jira/browse/FLINK-4276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15399286#comment-15399286 ]
ASF GitHub Bot commented on FLINK-4276:
---------------------------------------
GitHub user zentol opened a pull request:
https://github.com/apache/flink/pull/2312
[FLINK-4276] Fix TextInputFormatTest#testNestedFileRead
The problem with test was a simple formatting mismatch between the paths returned by `"file:" + File.getAbsolutePath()` and `Path#toString()`. The orientation of slashes were different, and one slash missing after `file:`.
The test was changed to make sure that the paths were formatted the same way.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zentol/flink 4276_test_text
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/2312.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2312
----
commit 7ca74b10c645ce7b1db7cfa3e3b51fdc32554f71
Author: zentol <ch...@apache.org>
Date: 2016-07-29T12:48:28Z
[FLINK-4276] Fix TextInputFormatTest#testNestedFileRead
----
> TextInputFormatTest.testNestedFileRead fails on Windows OS
> ----------------------------------------------------------
>
> Key: FLINK-4276
> URL: https://issues.apache.org/jira/browse/FLINK-4276
> Project: Flink
> Issue Type: Bug
> Components: Batch Connectors and Input/Output Formats, Tests
> Affects Versions: 1.1.0
> Reporter: Chesnay Schepler
> Priority: Trivial
>
> Stack-trace i got when running the test on W10:
> Running org.apache.flink.api.java.io.TextInputFormatTest
> test failed with exception: null
> java.lang.AssertionError
> at org.junit.Assert.fail(Assert.java:86)
> at org.junit.Assert.assertTrue(Assert.java:41)
> at org.junit.Assert.assertTrue(Assert.java:52)
> at org.apache.flink.api.java.io.TextInputFormatTest.testNestedFileRead(TextInputFormatTest.java:133)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
> at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
> at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
> at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
> at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
> at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
> at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
> at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
> at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)