[CDO 4.2] Broken pipe on TCPSelector [message #1066760] |
Thu, 04 July 2013 09:02 |
Eclipse User |
|
|
|
Hi Eike,
We have upgraded our CDO based product to CDO 4.2 final and when
executing our tests suite on Linux we have the following exception :
java.io.IOException: Broken pipe
at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:94)
at sun.nio.ch.IOUtil.write(IOUtil.java:51)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:450)
at org.eclipse.internal.net4j.buffer.Buffer.write(Buffer.java:306)
at
org.eclipse.net4j.internal.tcp.TCPConnector.handleWrite(TCPConnector.java:311)
at
org.eclipse.net4j.internal.tcp.TCPSelector.handleSelection(TCPSelector.java:264)
at org.eclipse.net4j.internal.tcp.TCPSelector.run(TCPSelector.java:179)
at java.lang.Thread.run(Thread.java:722)
This exception appears only when executing on Linux and not on Windows.
After a preleminary analysis I have deducted that the
http://git.eclipse.org/c/cdo/cdo.git/commit/?id=50a804b7fe45dbed1d7b7ead2e33597631c731bb
commit is the origin, related to
https://bugs.eclipse.org/bugs/show_bug.cgi?id=410444 because after
reverting this commit I have not anymore the previous exception.
I try to understand how this commit can produce this exception, but I
would like to have your advice.
Best Regards.
|
|
|
Re: [CDO 4.2] Broken pipe on TCPSelector [message #1066761 is a reply to message #1066760] |
Thu, 04 July 2013 09:04 |
Eclipse User |
|
|
|
Note that I have not this exception when executing the CDO tests suites.
Perhaps a difference is that in our tests suite we start a new CDO repo
on setUp and stop it in tearDown.
Le 04/07/2013 11:02, Esteban DUGUEPEROUX a écrit :
> Hi Eike,
>
> We have upgraded our CDO based product to CDO 4.2 final and when
> executing our tests suite on Linux we have the following exception :
>
> java.io.IOException: Broken pipe
> at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
> at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
> at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:94)
> at sun.nio.ch.IOUtil.write(IOUtil.java:51)
> at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:450)
> at org.eclipse.internal.net4j.buffer.Buffer.write(Buffer.java:306)
> at
> org.eclipse.net4j.internal.tcp.TCPConnector.handleWrite(TCPConnector.java:311)
>
> at
> org.eclipse.net4j.internal.tcp.TCPSelector.handleSelection(TCPSelector.java:264)
>
> at
> org.eclipse.net4j.internal.tcp.TCPSelector.run(TCPSelector.java:179)
> at java.lang.Thread.run(Thread.java:722)
>
> This exception appears only when executing on Linux and not on Windows.
>
> After a preleminary analysis I have deducted that the
> http://git.eclipse.org/c/cdo/cdo.git/commit/?id=50a804b7fe45dbed1d7b7ead2e33597631c731bb
> commit is the origin, related to
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=410444 because after
> reverting this commit I have not anymore the previous exception.
>
> I try to understand how this commit can produce this exception, but I
> would like to have your advice.
>
> Best Regards.
|
|
|
Re: [CDO 4.2] Broken pipe on TCPSelector [message #1066762 is a reply to message #1066760] |
Thu, 04 July 2013 09:12 |
Eclipse User |
|
|
|
I does not reproduces the exception if a add only the previous if guard
in Buffer.readChannel() to simulates a ClosedChannelException :
"if (socketChannel.read(buffer) == -1)"
Can you give me more info on the initial scenario of
https://bugs.eclipse.org/bugs/show_bug.cgi?id=410444 ?
Le 04/07/2013 11:02, Esteban DUGUEPEROUX a écrit :
> Hi Eike,
>
> We have upgraded our CDO based product to CDO 4.2 final and when
> executing our tests suite on Linux we have the following exception :
>
> java.io.IOException: Broken pipe
> at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
> at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
> at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:94)
> at sun.nio.ch.IOUtil.write(IOUtil.java:51)
> at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:450)
> at org.eclipse.internal.net4j.buffer.Buffer.write(Buffer.java:306)
> at
> org.eclipse.net4j.internal.tcp.TCPConnector.handleWrite(TCPConnector.java:311)
>
> at
> org.eclipse.net4j.internal.tcp.TCPSelector.handleSelection(TCPSelector.java:264)
>
> at
> org.eclipse.net4j.internal.tcp.TCPSelector.run(TCPSelector.java:179)
> at java.lang.Thread.run(Thread.java:722)
>
> This exception appears only when executing on Linux and not on Windows.
>
> After a preleminary analysis I have deducted that the
> http://git.eclipse.org/c/cdo/cdo.git/commit/?id=50a804b7fe45dbed1d7b7ead2e33597631c731bb
> commit is the origin, related to
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=410444 because after
> reverting this commit I have not anymore the previous exception.
>
> I try to understand how this commit can produce this exception, but I
> would like to have your advice.
>
> Best Regards.
|
|
|
|
Powered by
FUDForum. Page generated in 0.05003 seconds