ARROW-6461: [Java] Prevent EchoServer from closing the client socket after writing#5288
ARROW-6461: [Java] Prevent EchoServer from closing the client socket after writing#5288BryanCutler wants to merge 1 commit intoapache:masterfrom
Conversation
|
@tianchen92 and @emkornfield , this fixed the error for me although I could only recreate the issue with the changes in #5229 with the 8 byte prefix on (by default). If you want you can try it out in your branch and see if we pass tests first, or if this looks ok we could merge this and then rebase your branch. |
tianchen92
left a comment
There was a problem hiding this comment.
Thanks @BryanCutler , I think we could get this merged once build pass, and I could rebase on my branch later.
Codecov Report
@@ Coverage Diff @@
## master #5288 +/- ##
=========================================
Coverage ? 89.71%
=========================================
Files ? 693
Lines ? 104695
Branches ? 0
=========================================
Hits ? 93926
Misses ? 10769
Partials ? 0Continue to review full report at Codecov.
|
|
merged to master |
…after writing This change prevents a race condition where the `EchoServer` closes the client socket immediately after writing batches and the client may have not finished reading from the socket. The socket was being closed in three places: `ArrowStreamReader.close()` and `ArrowStreamWriter.close()` when being AutoClosed, and when the `ClientConnection` went out of scope. The race condition was prevalent in apache#5229 and consitently failing the `EchoServerTests.basicTest`. Closes apache#5288 from BryanCutler/java-EchoServer-prevent-close-6461 and squashes the following commits: 3763cbc <Bryan Cutler> Prevent EchoServer from closing the client socket after writing batches Authored-by: Bryan Cutler <cutlerb@gmail.com> Signed-off-by: Bryan Cutler <cutlerb@gmail.com>
…after writing This change prevents a race condition where the `EchoServer` closes the client socket immediately after writing batches and the client may have not finished reading from the socket. The socket was being closed in three places: `ArrowStreamReader.close()` and `ArrowStreamWriter.close()` when being AutoClosed, and when the `ClientConnection` went out of scope. The race condition was prevalent in apache#5229 and consitently failing the `EchoServerTests.basicTest`. Closes apache#5288 from BryanCutler/java-EchoServer-prevent-close-6461 and squashes the following commits: 3763cbc <Bryan Cutler> Prevent EchoServer from closing the client socket after writing batches Authored-by: Bryan Cutler <cutlerb@gmail.com> Signed-off-by: Bryan Cutler <cutlerb@gmail.com>
This change prevents a race condition where the
EchoServercloses the client socket immediately after writing batches and the client may have not finished reading from the socket. The socket was being closed in three places:ArrowStreamReader.close()andArrowStreamWriter.close()when being AutoClosed, and when theClientConnectionwent out of scope. The race condition was prevalent in #5229 and consitently failing theEchoServerTests.basicTest.