-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[fix](meta)fix after the FE restarts, ConcurrentMap becomes LinkedHashMap #58382
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
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
|
run buildall |
TPC-H: Total hot run time: 34594 ms |
TPC-DS: Total hot run time: 184320 ms |
ClickBench: Total hot run time: 27.51 s |
FE UT Coverage ReportIncrement line coverage |
|
run feut |
FE Regression Coverage ReportIncrement line coverage |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
…hMap (#58382) ### What problem does this PR solve? **For example, in the following case, after the FE restarts, snapshotInfos will become a LinkedHashMap:** @SerializedName("si") private Map<Long, SnapshotInfo> snapshotInfos = Maps.newConcurrentMap(); **The solution is to declare it as ConcurrentMap or, more specifically, ConcurrentHashMap:** @SerializedName("si") private ConcurrentHashMap<Long, SnapshotInfo> snapshotInfos = Maps.newConcurrentMap();
…es LinkedHashMap #58382 (#58446) Cherry-picked from #58382 Co-authored-by: zhangdong <[email protected]>
What problem does this PR solve?
For example, in the following case, after the FE restarts, snapshotInfos will become a LinkedHashMap:
@SerializedName("si")
private Map<Long, SnapshotInfo> snapshotInfos = Maps.newConcurrentMap();
The solution is to declare it as ConcurrentMap or, more specifically, ConcurrentHashMap:
@SerializedName("si")
private ConcurrentHashMap<Long, SnapshotInfo> snapshotInfos = Maps.newConcurrentMap();
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
fix after the FE restarts, ConcurrentMap becomes LinkedHashMap
Release note
fix after the FE restarts, ConcurrentMap becomes LinkedHashMap
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)