-
Notifications
You must be signed in to change notification settings - Fork 28.1k
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
[SPARK-13652][Core]Copy ByteBuffer in sendRpcSync as it will be recycled #11499
Conversation
cc @vanzin |
Does this situation arise when there aren't multiple threads accessing one stream? I had thought the docs were prohibiting this so that the defensive copy wasn't needed |
This is not related to multiple threads accessing one stream. The caller of However, the doc is pretty confusing. I think it wants to say that if using different clients to send messages, the responses may be out-of-order. |
LGTM. |
Test build #52411 has finished for PR 11499 at commit
|
It's a known flaky test. Retest this please |
Test build #52426 has finished for PR 11499 at commit
|
retest this please |
Test build #52445 has finished for PR 11499 at commit
|
Merging to master and 1.6 |
…cled ## What changes were proposed in this pull request? `sendRpcSync` should copy the response content because the underlying buffer will be recycled and reused. ## How was this patch tested? Jenkins unit tests. Author: Shixiong Zhu <shixiong@databricks.com> Closes #11499 from zsxwing/SPARK-13652. (cherry picked from commit 465c665) Signed-off-by: Shixiong Zhu <shixiong@databricks.com>
@yaooqinn could you also test this patch using your application to see if this one resolves your problem? Thanks! |
@zsxwing It is ok. |
LGTM,Thanks! |
…cled ## What changes were proposed in this pull request? `sendRpcSync` should copy the response content because the underlying buffer will be recycled and reused. ## How was this patch tested? Jenkins unit tests. Author: Shixiong Zhu <shixiong@databricks.com> Closes apache#11499 from zsxwing/SPARK-13652.
What changes were proposed in this pull request?
sendRpcSync
should copy the response content because the underlying buffer will be recycled and reused.How was this patch tested?
Jenkins unit tests.