Skip to content
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-40778][CORE] Make HeartbeatReceiver as an IsolatedRpcEndpoint #38231

Closed
wants to merge 3 commits into from

Conversation

warrenzhu25
Copy link
Contributor

What changes were proposed in this pull request?

Make HeartbeatReceiver as an IsolatedRpcEndpoint then it has dedicated single thread to process heartbeats.

Why are the changes needed?

All RpcEndpoint including HeartbeatReceiver in driver are sharing one thread pool. When there're lots of rpc messages queued, the waiting process time of heartbeat time could easily exceed heartbeat timeout, which generates lots of false positive.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Manually tested.

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@dongjoon-hyun
Copy link
Member

Gentle ping, @warrenzhu25

@warrenzhu25
Copy link
Contributor Author

Gentle ping, @warrenzhu25

Thanks for gentle ping. Updated

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM from my side. Thank you for updates.

Could you review this once more, @mridulm and @Ngone51 ?

@dongjoon-hyun
Copy link
Member

cc @cloud-fan , too.

@cloud-fan
Copy link
Contributor

cc @jiangxb1987

@dongjoon-hyun
Copy link
Member

Thank you, @warrenzhu25 , @mridulm , @cloud-fan .
Merged to master for Apache Spark 3.4.

SandishKumarHN pushed a commit to SandishKumarHN/spark that referenced this pull request Dec 12, 2022
### What changes were proposed in this pull request?
Make HeartbeatReceiver as an IsolatedRpcEndpoint then it has dedicated single thread to process heartbeats.

### Why are the changes needed?
All RpcEndpoint including HeartbeatReceiver in driver are sharing one thread pool. When there're lots of rpc messages queued, the waiting process time of heartbeat time could easily exceed heartbeat timeout, which generates lots of false positive.

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
Manually tested.

Closes apache#38231 from warrenzhu25/heartbeat.

Authored-by: Warren Zhu <warren.zhu25@gmail.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
sunchao pushed a commit to sunchao/spark that referenced this pull request Jun 2, 2023
### What changes were proposed in this pull request?
Make HeartbeatReceiver as an IsolatedRpcEndpoint then it has dedicated single thread to process heartbeats.

### Why are the changes needed?
All RpcEndpoint including HeartbeatReceiver in driver are sharing one thread pool. When there're lots of rpc messages queued, the waiting process time of heartbeat time could easily exceed heartbeat timeout, which generates lots of false positive.

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
Manually tested.

Closes apache#38231 from warrenzhu25/heartbeat.

Authored-by: Warren Zhu <warren.zhu25@gmail.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 89a3129)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 6fad2e1)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
5 participants