Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO 4.2] Broken pipe on TCPSelector
[CDO 4.2] Broken pipe on TCPSelector [message #1066760] Thu, 04 July 2013 09:02 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: [CDO 4.2] Broken pipe on TCPSelector [message #1066810 is a reply to message #1066762] Thu, 04 July 2013 13:29 Go to previous message
Eclipse UserFriend
I have raised the https://bugs.eclipse.org/bugs/show_bug.cgi?id=412313
Previous Topic:Preserve GenModel annotation to verify EOperations are implemented
Next Topic:Fwd: [CDO/EMF] Modeling BIG amounts of tiny data
Goto Forum:
  


Current Time: Fri Apr 26 13:39:50 GMT 2024

Powered by FUDForum. Page generated in 0.05003 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top