Skip to content

Conversation

@github-actions
Copy link
Contributor

Cherry-picked from #58382

…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();
@github-actions github-actions bot requested a review from yiguolei as a code owner November 27, 2025 04:12
@Thearas
Copy link
Contributor

Thearas commented Nov 27, 2025

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@dataroaring dataroaring reopened this Nov 27, 2025
@Thearas
Copy link
Contributor

Thearas commented Nov 27, 2025

run buildall

@yiguolei yiguolei merged commit efcd87d into branch-4.0 Nov 27, 2025
25 of 27 checks passed
@github-actions github-actions bot deleted the auto-pick-58382-branch-4.0 branch November 27, 2025 10:11
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.

4 participants