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

[#3368]Cancel empty Long polling thread to improve performance. #3432

Merged
merged 7 commits into from
Aug 5, 2020

Conversation

binbin0325
Copy link
Collaborator

@binbin0325 binbin0325 commented Jul 23, 2020

What is the purpose of the change

Cancels the idle long polling thread.
#3368

Brief changelog

update ClientWorker.java
1:Add remakeCacheDataTaskId()
2:Add updateSchedulerMap()
3:Increase the processing if taskCount is reduced

@CLAassistant
Copy link

CLAassistant commented Jul 23, 2020

CLA assistant check
All committers have signed the CLA.

@KomachiSion KomachiSion added the kind/enhancement Category issues or prs related to enhancement. label Jul 24, 2020
@KomachiSion KomachiSion added this to the 1.3.2 milestone Jul 24, 2020
update clientWorker
@zongtanghu
Copy link
Collaborator

And please add test cases codes for this pr, @sanxun0325

@zongtanghu zongtanghu changed the title [#3368]Cancel long polling thread [#3368]Cancel empty Long polling thread Jul 28, 2020
binbin.zhang and others added 2 commits July 29, 2020 09:06
…cos into cancel_long_polling_thread

# Conflicts:
#	client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java
@binbin0325
Copy link
Collaborator Author

@zongtanghu Please help with the review.

@zongtanghu zongtanghu changed the title [#3368]Cancel empty Long polling thread [#3368]Cancel empty Long polling thread to improve performance. Jul 30, 2020
@zongtanghu
Copy link
Collaborator

Please help to review this pr, thanks. @chuntaojun

KomachiSion
KomachiSion previously approved these changes Jul 31, 2020
@zongtanghu
Copy link
Collaborator

@chuntaojun 春少可以一起来review下,这个PR,我的想法是,既然用了remove那么taskFlagMap 变成taskIdSets更为合适,也就是如上面留言所述的,HashMap -> HashSet.

@KomachiSion KomachiSion added the pending On hold due to dependency or release label Aug 3, 2020
@KomachiSion KomachiSion removed this from the 1.3.2 milestone Aug 3, 2020
@KomachiSion KomachiSion removed the pending On hold due to dependency or release label Aug 5, 2020
@zongtanghu
Copy link
Collaborator

LGTM

@zongtanghu zongtanghu merged commit 95c8bf2 into alibaba:develop Aug 5, 2020
@zongtanghu zongtanghu added this to the 1.4.0 milestone Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Category issues or prs related to enhancement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants