-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
[Fix-16793] WorkerGroupChangeNotifier may can not detect cluster's first time change #16796
Conversation
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.
Good catch, I left some comments.
...c/main/java/org/apache/dolphinscheduler/server/master/cluster/WorkerGroupChangeNotifier.java
Outdated
Show resolved
Hide resolved
...c/main/java/org/apache/dolphinscheduler/server/master/cluster/WorkerGroupChangeNotifier.java
Outdated
Show resolved
Hide resolved
...r-master/src/main/java/org/apache/dolphinscheduler/server/master/cluster/ClusterManager.java
Outdated
Show resolved
Hide resolved
Since we use a daemon thread to detect the worker group changed, so there will always exist delay, but this delay does have a serious effect. We can broadcast a worker group changed event to all masters once the api receive a worker group changed event. |
…ler/server/master/cluster/WorkerGroupChangeNotifier.java Co-authored-by: Wenjun Ruan <[email protected]>
…ler/server/master/cluster/WorkerGroupChangeNotifier.java Co-authored-by: Wenjun Ruan <[email protected]>
…ler/server/master/cluster/ClusterManager.java Co-authored-by: Wenjun Ruan <[email protected]>
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
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 run mvn spotless:apply
to format the code.
formatted |
Quality Gate passedIssues Measures |
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.
+1
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
Fix #16793
-- i created a new branch, the old is broken. @SbloodyS
Brief change log
add all groups to new listener when new listener added.
delete
DEFAULT_REFRESH_WORKER_INTERVAL
, addstartScheduleThread()
to get the parameter fromMasterConfig
.add manual call
startScheduleThread()
inClusterManager.start()
Verify this pull request
Pull Request Notice
Pull Request Notice