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

修复线程池核心、最大线程数变更问题 #190

Closed
magestacks opened this issue Apr 22, 2022 · 3 comments
Closed

修复线程池核心、最大线程数变更问题 #190

magestacks opened this issue Apr 22, 2022 · 3 comments
Assignees
Labels
type: bug Something isn't working
Milestone

Comments

@magestacks
Copy link
Member

上下文:

初始化时候最大线程核心线程数 = 10,通过管理台修改为最大线程核心线程数 = 9;

在 setMaximumPoolSize() 的时候,判断里取的核心线程数是10,新的最大线程数是9,会报错。
@magestacks magestacks added the type: bug Something isn't working label Apr 22, 2022
@magestacks magestacks added this to the 1.2.1 milestone Apr 22, 2022
@hushtian
Copy link
Contributor

判断当前值和修改后的值大小,来判断 core 和 max 哪个先赋值

@hushtian
Copy link
Contributor

修改最大线程数的时候,要判断修改前和修改后的最大线程数。根据情况来确定先修改最大线程数还是核心线程数。

@magestacks
Copy link
Member Author

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants