-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARROW-3199: [Plasma] File descriptor send and receive retries #2551
Conversation
@pcmoritz is this the cause of
Just seeing this locally |
Hmm, that sounds unlikely to me. What's the configuration you are running the test on, do you think I could reproduce it? |
Running on Ubuntu 14.04, clang-6.0 |
And which python? |
Python 3.6.5 |
126ccf2
to
1e3f91f
Compare
Codecov Report
@@ Coverage Diff @@
## master #2551 +/- ##
=========================================
+ Coverage 87.07% 88.18% +1.1%
=========================================
Files 489 431 -58
Lines 69010 65454 -3556
=========================================
- Hits 60093 57721 -2372
+ Misses 8816 7733 -1083
+ Partials 101 0 -101
Continue to review full report at Codecov.
|
return static_cast<int>(r); | ||
} | ||
} else if (r == 0) { | ||
ARROW_LOG(INFO) << "Encountered unexpected EOF"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case, we may need to return right? Will we infinite loop here?
In the past it looks like we were returning 0
here and indicating success.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, I fixed it!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still a little unclear on this case. Does r == 0
mean the recipient hung up? In that case we return 0
and it's treated as success?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that seems to be the right behavior. Note there will also be a "Disconnected client" message in the main loop of the store to detect this.
b54ddb0
to
c7ca3b7
Compare
+1 This is now ready to merge! |
An additional piece of eyes would be appreciated for this. It seems to solve our issue reported in the JIRA, but I'm not sure what the semantics of partial reads/writes is here (in particular, how are partial read/writes handled for ancillary data like file descriptors?).
found by cc @stephanie-wang