You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tibor Digana (Jira)" <ji...@apache.org> on 2022/02/04 04:24:00 UTC

[jira] [Closed] (SUREFIRE-2002) TCP client throws WritePendingException

     [ https://issues.apache.org/jira/browse/SUREFIRE-2002?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tibor Digana closed SUREFIRE-2002.
----------------------------------
    Resolution: Fixed

https://gitbox.apache.org/repos/asf?p=maven-surefire.git;a=commit;h=7e5fc782c5378586e4668a2ba137ee51058ff6b8

> TCP client throws WritePendingException
> ---------------------------------------
>
>                 Key: SUREFIRE-2002
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-2002
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: Maven Failsafe Plugin, Maven Surefire Plugin
>    Affects Versions: 3.0.0-M5
>            Reporter: Tibor Digana
>            Assignee: Tibor Digana
>            Priority: Major
>             Fix For: 3.0.0-M6
>
>
> The main Thread confirms a session by sending raw bytes from the forked JVM back to the TCP server in the plugin. Sometimes this async operation overlaps with another operation writing events to the NIO Channel. The exception {{WritePendingException}} is caught by the dump file:
> {noformat}
> # Created at 2022-02-03T05:48:25.661
> java.io.IOException
> 	at org.apache.maven.surefire.api.util.internal.Channels$1.write(Channels.java:111)
> 	at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
> 	at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
> 	at org.apache.maven.surefire.api.util.internal.Channels$4.flushImpl(Channels.java:266)
> 	at org.apache.maven.surefire.api.util.internal.AbstractNoninterruptibleWritableChannel.write(AbstractNoninterruptibleWritableChannel.java:76)
> 	at org.apache.maven.surefire.api.util.internal.AbstractNoninterruptibleWritableChannel.write(AbstractNoninterruptibleWritableChannel.java:45)
> 	at org.apache.maven.surefire.api.stream.AbstractStreamEncoder.write(AbstractStreamEncoder.java:78)
> 	at org.apache.maven.surefire.booter.spi.EventChannelEncoder.write(EventChannelEncoder.java:334)
> 	at org.apache.maven.surefire.booter.spi.EventChannelEncoder.consoleDebugLog(EventChannelEncoder.java:262)
> 	at org.apache.maven.surefire.api.booter.ForkingRunListener.debug(ForkingRunListener.java:150)
> 	at org.apache.maven.surefire.booter.ForkedBooter.listenToShutdownCommands(ForkedBooter.java:264)
> 	at org.apache.maven.surefire.booter.ForkedBooter.setupBooter(ForkedBooter.java:146)
> 	at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:599)
> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:586)
> Caused by: java.nio.channels.WritePendingException
> 	at sun.nio.ch.AsynchronousSocketChannelImpl.write(AsynchronousSocketChannelImpl.java:353)
> 	at sun.nio.ch.AsynchronousSocketChannelImpl.write(AsynchronousSocketChannelImpl.java:388)
> 	at org.apache.maven.surefire.api.util.internal.Channels$1.write(Channels.java:100)
> 	... 13 more
> # Created at 2022-02-03T05:48:32.716
> The channel (std/out or TCP/IP) failed to send a stream from this subprocess.
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)