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

[Feature-16834] Start worker node with worker group label #16875

Merged
merged 17 commits into from
Dec 6, 2024

Conversation

SbloodyS
Copy link
Member

@SbloodyS SbloodyS commented Dec 4, 2024

Purpose of the pull request

close #16834

Brief change log

5CSQsW6NU8OudM4.png

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(or)

Pull Request Notice

Pull Request Notice

If your pull request contain incompatible change, you should also add it to docs/docs/en/guide/upgrede/incompatible.md

@SbloodyS SbloodyS self-assigned this Dec 4, 2024
@SbloodyS SbloodyS added this to the 3.3.0 milestone Dec 4, 2024
@SbloodyS SbloodyS added the feature new feature label Dec 4, 2024
@github-actions github-actions bot added UI ui and front end related backend test labels Dec 4, 2024
@github-actions github-actions bot added the e2e e2e test label Dec 4, 2024
@SbloodyS SbloodyS marked this pull request as ready for review December 4, 2024 13:40
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@EqualsAndHashCode(callSuper = true)

Check notice

Code scanning / CodeQL

Missing Override annotation Note

This method overrides
WorkerGroup.canEqual
; it is advisable to add an Override annotation.
Comment on lines 154 to 156
} else {
workerGroupMapping.put(workerServer.getWorkerGroup(), removeWorkerGroupAddrList);
}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
} else {
workerGroupMapping.put(workerServer.getWorkerGroup(), removeWorkerGroupAddrList);
}
}

No need to put again.

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed.

@@ -126,6 +126,17 @@ WorkerServerMetadata parseServerFromHeartbeat(String serverHeartBeatJson) {
@Override
public void onServerAdded(WorkerServerMetadata workerServer) {
workerMapping.put(workerServer.getAddress(), workerServer);
synchronized (workerGroupMapping) {
Copy link
Member

Choose a reason for hiding this comment

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

Please add synchronized (workerGroupMapping) at onWorkerGroupDelete, onWorkerGroupAdd method.

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed.

Copy link

sonarqubecloud bot commented Dec 5, 2024

Please retry analysis of this Pull-Request directly on SonarQube Cloud

Copy link
Member

@ruanwenjun ruanwenjun left a comment

Choose a reason for hiding this comment

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

LGTM

@SbloodyS SbloodyS merged commit 28e849e into apache:dev Dec 6, 2024
68 of 71 checks passed
@SbloodyS SbloodyS deleted the feature_16834 branch December 6, 2024 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend e2e e2e test feature new feature test UI ui and front end related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature][Worker Group] Start worker node with worker group label
3 participants