Skip to content

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 <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
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 <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 89a3129)
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 6fad2e1)
Signed-off-by: Dongjoon Hyun <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants