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

ASF GitHub Bot commented on CAMEL-11595:
----------------------------------------

GitHub user aldettinger opened a pull request:

    https://github.com/apache/camel/pull/2368

    CAMEL-11595: Fixed the reader premature closure by competing threads

    See [CAMEL-11595](https://issues.apache.org/jira/browse/CAMEL-11595) for 
context.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/aldettinger/camel master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/2368.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 #2368
    
----
commit 80fe56f69396c49559e01d32e25cfd9ea05c5390
Author: aldettinger <aldettinger@...>
Date:   2018-06-10T11:59:28Z

    CAMEL-11595: Fixed the reader premature closure by competing threads

----


> camel-univocity-parsers - A number of stream closed exception in tests
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-11595
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11595
>             Project: Camel
>          Issue Type: Test
>          Components: tests
>            Reporter: Claus Ibsen
>            Assignee: Alex Dettinger
>            Priority: Minor
>
> I wonder if we can look into these exceptions during these tests. It may be 
> just that we need a nicer stop/cleanup of the test or something else.
> {code}
> [INFO] Running 
> org.apache.camel.dataformat.univocity.UniVocityCsvDataFormatMarshalSpringTest
> [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.553 
> s - in 
> org.apache.camel.dataformat.univocity.UniVocityCsvDataFormatMarshalSpringTest
> [INFO] Running 
> org.apache.camel.dataformat.univocity.UniVocityCsvDataFormatMarshalTest
> [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.822 
> s - in org.apache.camel.dataformat.univocity.UniVocityCsvDataFormatMarshalTest
> [INFO] Running 
> org.apache.camel.dataformat.univocity.UniVocityCsvDataFormatTest
> [INFO] Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.346 
> s - in org.apache.camel.dataformat.univocity.UniVocityCsvDataFormatTest
> [INFO] Running 
> org.apache.camel.dataformat.univocity.UniVocityCsvDataFormatUnmarshalSpringTest
> Exception in thread "Character reading thread" 
> java.lang.IllegalStateException: Error processing input
>       at 
> com.univocity.parsers.common.input.concurrent.ConcurrentCharLoader.run(ConcurrentCharLoader.java:92)
>       at java.lang.Thread.run(Thread.java:748)
> Caused by: java.io.IOException: Stream closed
>       at sun.nio.cs.StreamDecoder.ensureOpen(StreamDecoder.java:46)
>       at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:148)
>       at java.io.InputStreamReader.read(InputStreamReader.java:184)
>       at 
> com.univocity.parsers.common.input.concurrent.CharBucket.fill(CharBucket.java:70)
>       at 
> com.univocity.parsers.common.input.concurrent.ConcurrentCharLoader.run(ConcurrentCharLoader.java:81)
>       ... 1 more
> [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.669 
> s - in 
> org.apache.camel.dataformat.univocity.UniVocityCsvDataFormatUnmarshalSpringTest
> [INFO] Running 
> org.apache.camel.dataformat.univocity.UniVocityCsvDataFormatUnmarshalTest
> Exception in thread "Character reading thread" 
> java.lang.IllegalStateException: Error processing input
>       at 
> com.univocity.parsers.common.input.concurrent.ConcurrentCharLoader.run(ConcurrentCharLoader.java:92)
>       at java.lang.Thread.run(Thread.java:748)
> Caused by: java.io.IOException: Stream closed
>       at sun.nio.cs.StreamDecoder.ensureOpen(StreamDecoder.java:46)
>       at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:148)
>       at java.io.InputStreamReader.read(InputStreamReader.java:184)
>       at 
> com.univocity.parsers.common.input.concurrent.CharBucket.fill(CharBucket.java:70)
>       at 
> com.univocity.parsers.common.input.concurrent.ConcurrentCharLoader.run(ConcurrentCharLoader.java:81)
>       ... 1 more
> [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.84 s 
> - in org.apache.camel.dataformat.univocity.UniVocityCsvDataFormatUnmarshalTest
> [INFO] Running 
> org.apache.camel.dataformat.univocity.UniVocityFixedWidthDataFormatMarshalSpringTest
> [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.638 
> s - in 
> org.apache.camel.dataformat.univocity.UniVocityFixedWidthDataFormatMarshalSpringTest
> [INFO] Running 
> org.apache.camel.dataformat.univocity.UniVocityFixedWidthDataFormatMarshalTest
> [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.826 
> s - in 
> org.apache.camel.dataformat.univocity.UniVocityFixedWidthDataFormatMarshalTest
> [INFO] Running 
> org.apache.camel.dataformat.univocity.UniVocityFixedWidthDataFormatTest
> [INFO] Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.344 
> s - in org.apache.camel.dataformat.univocity.UniVocityFixedWidthDataFormatTest
> [INFO] Running 
> org.apache.camel.dataformat.univocity.UniVocityFixedWidthDataFormatUnmarshalSpringTest
> Exception in thread "Character reading thread" 
> java.lang.IllegalStateException: Error processing input
>       at 
> com.univocity.parsers.common.input.concurrent.ConcurrentCharLoader.run(ConcurrentCharLoader.java:92)
>       at java.lang.Thread.run(Thread.java:748)
> Caused by: java.io.IOException: Stream closed
>       at sun.nio.cs.StreamDecoder.ensureOpen(StreamDecoder.java:46)
>       at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:148)
>       at java.io.InputStreamReader.read(InputStreamReader.java:184)
>       at 
> com.univocity.parsers.common.input.concurrent.CharBucket.fill(CharBucket.java:70)
>       at 
> com.univocity.parsers.common.input.concurrent.ConcurrentCharLoader.run(ConcurrentCharLoader.java:81)
>       ... 1 more
> [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.715 
> s - in 
> org.apache.camel.dataformat.univocity.UniVocityFixedWidthDataFormatUnmarshalSpringTest
> [INFO] Running 
> org.apache.camel.dataformat.univocity.UniVocityFixedWidthDataFormatUnmarshalTest
> Exception in thread "Character reading thread" 
> java.lang.IllegalStateException: Error processing input
>       at 
> com.univocity.parsers.common.input.concurrent.ConcurrentCharLoader.run(ConcurrentCharLoader.java:92)
>       at java.lang.Thread.run(Thread.java:748)
> Caused by: java.io.IOException: Stream closed
>       at sun.nio.cs.StreamDecoder.ensureOpen(StreamDecoder.java:46)
>       at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:148)
>       at java.io.InputStreamReader.read(InputStreamReader.java:184)
>       at 
> com.univocity.parsers.common.input.concurrent.CharBucket.fill(CharBucket.java:70)
>       at 
> com.univocity.parsers.common.input.concurrent.ConcurrentCharLoader.run(ConcurrentCharLoader.java:81)
>       ... 1 more
> [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.837 
> s - in 
> org.apache.camel.dataformat.univocity.UniVocityFixedWidthDataFormatUnmarshalTest
> [INFO] Running 
> org.apache.camel.dataformat.univocity.UniVocityTsvDataFormatMarshalSpringTest
> [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.609 
> s - in 
> org.apache.camel.dataformat.univocity.UniVocityTsvDataFormatMarshalSpringTest
> [INFO] Running 
> org.apache.camel.dataformat.univocity.UniVocityTsvDataFormatMarshalTest
> [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.829 
> s - in org.apache.camel.dataformat.univocity.UniVocityTsvDataFormatMarshalTest
> [INFO] Running 
> org.apache.camel.dataformat.univocity.UniVocityTsvDataFormatTest
> [INFO] Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.344 
> s - in org.apache.camel.dataformat.univocity.UniVocityTsvDataFormatTest
> [INFO] Running 
> org.apache.camel.dataformat.univocity.UniVocityTsvDataFormatUnmarshalSpringTest
> Exception in thread "Character reading thread" 
> java.lang.IllegalStateException: Error processing input
>       at 
> com.univocity.parsers.common.input.concurrent.ConcurrentCharLoader.run(ConcurrentCharLoader.java:92)
>       at java.lang.Thread.run(Thread.java:748)
> Caused by: java.io.IOException: Stream closed
>       at sun.nio.cs.StreamDecoder.ensureOpen(StreamDecoder.java:46)
>       at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:148)
>       at java.io.InputStreamReader.read(InputStreamReader.java:184)
>       at 
> com.univocity.parsers.common.input.concurrent.CharBucket.fill(CharBucket.java:70)
>       at 
> com.univocity.parsers.common.input.concurrent.ConcurrentCharLoader.run(ConcurrentCharLoader.java:81)
>       ... 1 more
> [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.658 
> s - in 
> org.apache.camel.dataformat.univocity.UniVocityTsvDataFormatUnmarshalSpringTest
> [INFO] Running 
> org.apache.camel.dataformat.univocity.UniVocityTsvDataFormatUnmarshalTest
> Exception in thread "Character reading thread" 
> java.lang.IllegalStateException: Error processing input
>       at 
> com.univocity.parsers.common.input.concurrent.ConcurrentCharLoader.run(ConcurrentCharLoader.java:92)
>       at java.lang.Thread.run(Thread.java:748)
> Caused by: java.io.IOException: Stream closed
>       at sun.nio.cs.StreamDecoder.ensureOpen(StreamDecoder.java:46)
>       at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:148)
>       at java.io.InputStreamReader.read(InputStreamReader.java:184)
>       at 
> com.univocity.parsers.common.input.concurrent.CharBucket.fill(CharBucket.java:70)
>       at 
> com.univocity.parsers.common.input.concurrent.ConcurrentCharLoader.run(ConcurrentCharLoader.java:81)
>       ... 1 more
> [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.838 
> s - in 
> org.apache.camel.dataformat.univocity.UniVocityTsvDataFormatUnmarshalTest
> [INFO]
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to