-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Refactor dispatch task execute #3995
Refactor dispatch task execute #3995
Conversation
*/ | ||
public class NacosExecuteTaskExecuteEngine extends AbstractNacosTaskExecuteEngine<AbstractExecuteTask> { | ||
|
||
private final TaskExecuteWorker[] executeWorkers; |
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.
Can it be dynamically changed or defined by the user
} | ||
} | ||
|
||
private int findWorkerCount() { |
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.
If I remember correctly, there's a special way to do this
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.
How to do this?
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.
com.alibaba.nacos.common.utils.ThreadUtils#getSuitableThreadCount
common/src/main/java/com/alibaba/nacos/common/task/engine/TaskExecuteWorker.java
Show resolved
Hide resolved
* Refactor nacos task execute engine * Refactor nacos task execute engine * For checkstyle * For checkstyle * Use ThreadUtils to reduce duplicate codes * Set custom logger for TaskExecuteWorker * Set custom logger for TaskExecuteWorker
* Refactor nacos task execute engine * Refactor nacos task execute engine * For checkstyle * For checkstyle * Use ThreadUtils to reduce duplicate codes * Set custom logger for TaskExecuteWorker * Set custom logger for TaskExecuteWorker
* 'develop' of github.com:alibaba/nacos: (678 commits) Fix integration test error Fix unit test error in ci For checkStyle Modify the startup script custom configuration first default configuration (alibaba#4021) Revert "Naming module Raft protocol migration" [ISSUE alibaba#3904] feature - operate instance's metadata alonely (alibaba#3912) For alibaba#3710#, Fix special characters cannot be used in Metadata (alibaba#4019) [ISSUE-alibaba#3855] Provided a feature to view version comparisons in the configDetails page (alibaba#3988) Refactor dispatch task execute (alibaba#3995) Revert "for alibaba#3621 (alibaba#3668)" (alibaba#3999) Naming module Raft protocol migration (alibaba#3989) refactor: code refactor [ISSUE alibaba#3576] [Enhancement] Adding the destroy lifecycle method on NamingMaintainService (alibaba#3985) Fix issue 2866 (alibaba#3984) For alibaba#3384, Fix member extend info do not update error. (alibaba#3982) Fix#3973 (alibaba#3974) Move remove listener logic to ServiceManager Move remove listener logic to ServiceManager 1.fix unit test can't pass (alibaba#3956) [ISSUE alibaba#3909] add domain's judgement (alibaba#3913) ...
Please do not create a Pull Request without creating an issue first.
What is the purpose of the change
Refactor dispatch task execute, abstract an execute task engine to common-module, so that it can be used only only in distro.
Brief changelog
Verifying this change
Follow this checklist to help us incorporate your contribution quickly and easily:
[ISSUE #123] Fix UnknownException when host config not exist
. Each commit in the pull request should have a meaningful subject line and body.mvn -B clean package apache-rat:check findbugs:findbugs -Dmaven.test.skip=true
to make sure basic checks pass. Runmvn clean install -DskipITs
to make sure unit-test pass. Runmvn clean test-compile failsafe:integration-test
to make sure integration-test pass.