-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Conversation
...r-master/src/main/java/org/apache/dolphinscheduler/server/master/cluster/WorkerClusters.java
Outdated
Show resolved
Hide resolved
import lombok.EqualsAndHashCode; | ||
import lombok.NoArgsConstructor; | ||
|
||
@EqualsAndHashCode(callSuper = true) |
Check notice
Code scanning / CodeQL
Missing Override annotation Note
WorkerGroup.canEqual
} else { | ||
workerGroupMapping.put(workerServer.getWorkerGroup(), removeWorkerGroupAddrList); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} else { | |
workerGroupMapping.put(workerServer.getWorkerGroup(), removeWorkerGroupAddrList); | |
} | |
} |
No need to put again.
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
Please retry analysis of this Pull-Request directly on SonarQube Cloud |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Purpose of the pull request
close #16834
Brief change log
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