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

[Enhancement] Iterating map variable "delayLevelTable" in order should be JDK-independent #7669

Closed
1 task done
blueszhangsh opened this issue Dec 16, 2023 · 0 comments · Fixed by #7675
Closed
1 task done

Comments

@blueszhangsh
Copy link

Before Creating the Enhancement Request

  • I have confirmed that this should be classified as an enhancement rather than a bug/feature.

Summary

change the type of delayLevelTable from ConcurrentHashMap to ConcurrentSkipListMap

Motivation

Iterating map variable "delayLevelTable" in order should be JDK-independent. ConcurrentHashMap does not provide guarantee iterating keys in orders. Though iterating ConcurrentHashMap<Integer, Long> is by order due to implementation of ConcurrentHashMap, it should be jdk-independent.

Describe the Solution You'd Like

change the type of delayLevelTable from ConcurrentHashMap to ConcurrentSkipListMap

Describe Alternatives You've Considered

none.

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant