Skip to content

[CELEBORN-1726] Update WorkerInfo when transition worker state#2930

Closed
reswqa wants to merge 4 commits into
apache:mainfrom
reswqa:worker_info
Closed

[CELEBORN-1726] Update WorkerInfo when transition worker state#2930
reswqa wants to merge 4 commits into
apache:mainfrom
reswqa:worker_info

Conversation

@reswqa
Copy link
Copy Markdown
Member

@reswqa reswqa commented Nov 20, 2024

What changes were proposed in this pull request?

Update WorkerInfo when transition worker state

Why are the changes needed?

When we send a getWorkerInfo request to the Worker node after this worker has became Decommission state , it does not return the correct state.

note: If we send this request to Master node instead of Worker, the return value is correct. We should update the worker state also for worker node itself.

Does this PR introduce any user-facing change?

Yes

How was this patch tested?

Mannually

@reswqa reswqa marked this pull request as ready for review November 20, 2024 09:19
Copy link
Copy Markdown
Contributor

@RexXiong RexXiong left a comment

Choose a reason for hiding this comment

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

LGTM, merge to main(v0.6.0) and branch-0.5(v0.5.2)

@RexXiong RexXiong closed this in bb96a5f Nov 20, 2024
RexXiong pushed a commit that referenced this pull request Nov 20, 2024
### What changes were proposed in this pull request?
Update WorkerInfo when transition worker state

### Why are the changes needed?
When we send a `getWorkerInfo` request to the `Worker` node after this worker has became `Decommission` state , it does not return the correct state.

note: If we send this request to `Master` node instead of `Worker`, the return value is correct. We should update the worker state also for worker node itself.

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

### How was this patch tested?
Mannually

Closes #2930 from reswqa/worker_info.

Authored-by: Weijie Guo <reswqa@163.com>
Signed-off-by: Shuang <lvshuang.xjs@alibaba-inc.com>
(cherry picked from commit bb96a5f)
Signed-off-by: Shuang <lvshuang.xjs@alibaba-inc.com>
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.

3 participants