Skip to content

[CELEBORN-1619][CELEBORN-474][FOLLOWUP] TagsManager uses JavaUtils#newConcurrentHashMap to speed up ConcurrentHashMap#computeIfAbsent#2922

Closed
SteNicholas wants to merge 1 commit intoapache:mainfrom
SteNicholas:CELEBORN-1619
Closed

[CELEBORN-1619][CELEBORN-474][FOLLOWUP] TagsManager uses JavaUtils#newConcurrentHashMap to speed up ConcurrentHashMap#computeIfAbsent#2922
SteNicholas wants to merge 1 commit intoapache:mainfrom
SteNicholas:CELEBORN-1619

Conversation

@SteNicholas
Copy link
Member

What changes were proposed in this pull request?

TagsManager uses JavaUtils#newConcurrentHashMap to speed up ConcurrentHashMap#computeIfAbsent.

Follow up #2844.

Why are the changes needed?

Celeborn supports JDK8, which could meet the bug mentioned in JDK-8161372. Therefore, it's better to use JavaUtils#newConcurrentHashMap to speed up ConcurrentHashMap#computeIfAbsent.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

CI.

…wConcurrentHashMap to speed up ConcurrentHashMap#computeIfAbsent
Copy link
Contributor

@s0nskar s0nskar left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @SteNicholas

@SteNicholas
Copy link
Member Author

Ping @turboFei.

@SteNicholas
Copy link
Member Author

Merged to main(v0.6.0).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants