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

Use queue#take instead of poll #3765

Merged
merged 7 commits into from
Jun 28, 2021
Merged

Conversation

Technoboy-
Copy link
Contributor

Fix #3764

@codecov-commenter
Copy link

codecov-commenter commented Jun 17, 2021

Codecov Report

Merging #3765 (4dae3a7) into master (1b3424f) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #3765      +/-   ##
============================================
- Coverage     50.12%   50.11%   -0.02%     
+ Complexity     2442     2440       -2     
============================================
  Files           479      479              
  Lines         14810    14807       -3     
  Branches       1504     1503       -1     
============================================
- Hits           7423     7420       -3     
+ Misses         6866     6865       -1     
- Partials        521      522       +1     
Impacted Files Coverage Δ
...lo/configservice/util/InstanceConfigAuditUtil.java 75.43% <100.00%> (-0.63%) ⬇️
...ervice/service/ReleaseMessageServiceWithCache.java 85.88% <0.00%> (-1.18%) ⬇️
.../apollo/internals/RemoteConfigLongPollService.java 77.71% <0.00%> (+0.60%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1b3424f...4dae3a7. Read the comment docs.

@nobodyiam
Copy link
Member

please update the CHANGES.md

@nobodyiam
Copy link
Member

what does cs mean here?

@Technoboy- Technoboy- changed the title Use queue#take instead of poll to avoid cs Use queue#take instead of poll Jun 21, 2021
CHANGES.md Outdated
@@ -46,6 +46,7 @@ Apollo 1.9.0
* [feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent](https://github.com/ctripcorp/apollo/pull/3666)
* [add More... link for known users](https://github.com/ctripcorp/apollo/pull/3757)
* [update OIDC documentation](https://github.com/ctripcorp/apollo/pull/3766)
* [Use queue#take instead of poll to avoid cs](https://github.com/ctripcorp/apollo/pull/3765)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed you changed the title, we need to also update the description in the changes.md.
btw, does cs mean context switch?

Suggested change
* [Use queue#take instead of poll to avoid cs](https://github.com/ctripcorp/apollo/pull/3765)
* [Use queue#take instead of poll](https://github.com/ctripcorp/apollo/pull/3765)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, so I think it's no need to poll and then sleep.

Copy link
Member

@nobodyiam nobodyiam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@nobodyiam nobodyiam merged commit d5200df into apolloconfig:master Jun 28, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jun 28, 2021
@nobodyiam nobodyiam added this to the 1.9.0 milestone Jul 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use queue#take instead of poll to avoid cs
5 participants