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

Add user in heartbeat of RssShuffleManager #1876

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kuszz
Copy link
Contributor

@kuszz kuszz commented Jul 9, 2024

What changes were proposed in this pull request?

add user in AppHeartBeatRequest

Why are the changes needed?

if Coordinator restarts, the RssShuffleManager will not reregister, and user will be lost in heartbeat.

Fix: #1875

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Exsiting UTs.

Copy link

github-actions bot commented Jul 9, 2024

Test Results

 2 657 files  ±0   2 657 suites  ±0   5h 31m 30s ⏱️ +31s
   946 tests ±0     945 ✅ ±0   1 💤 ±0  0 ❌ ±0 
11 799 runs  ±0  11 784 ✅ ±0  15 💤 ±0  0 ❌ ±0 

Results for commit 0017cc0. ± Comparison against base commit 34b5187.

♻️ This comment has been updated with latest results.

@rickyma rickyma requested a review from jerqi July 11, 2024 11:59
// compatible with lower version clients
if (user == null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

How to handle the case user == null? Because there may be existing legacy clients.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How to handle the case user == null? Because there may be existing legacy clients.

When the user field is not specified in legacy clients, the value will be empty instead of null. So if coordinator restarts, it actually calls registerApplicationInfo(appId, "").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] After the coordinator restarts, the user field will be lost in heartbeat
2 participants