Skip to content

Conversation

@bobhan1
Copy link
Contributor

@bobhan1 bobhan1 commented Dec 2, 2024

What problem does this PR solve?

Problem Summary: When FE handles BEs' tablet report and finds that there exists some expired txns on BE, it will generate publish version task. TPartitionVersionInfo with same values may be added to transactionsToPublish under same txn id many times when partitions involved in this failed txn involves many tablets on this BE. Because it uses ArrayListMultimap, these duplicate values may occupy a lot of memories when the number of tablets is large.

Release note

Fixed the issue of FE's memory occupation growing too fast in cases of persistent load and clone failures on merge-on-write tables.

修复了在merge-on-write表上有持续的导入失败和clone失败的情况下,FE使用内存增长过快的问题。

Check List (For Author)

  • Test

    • Regression test
    • Unit Test
    • Manual test (add detailed scripts or steps below)
    • No need to test or manual test. Explain why:
      • This is a refactor/code format and no logic has been changed.
      • Previous test can cover this change.
      • No code files have been changed.
      • Other reason
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

@doris-robot
Copy link

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?

@bobhan1 bobhan1 force-pushed the fix-duplicate-TpartitionVersionInfo branch from 484a95e to ab46481 Compare December 2, 2024 06:18
@bobhan1
Copy link
Contributor Author

bobhan1 commented Dec 2, 2024

run buildall

Copy link
Contributor

@zhannngchen zhannngchen left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Dec 2, 2024
@github-actions
Copy link
Contributor

github-actions bot commented Dec 2, 2024

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 2, 2024

PR approved by anyone and no changes requested.

@wm1581066 wm1581066 added the usercase Important user case type label label Dec 2, 2024
Copy link
Contributor

@dataroaring dataroaring left a comment

Choose a reason for hiding this comment

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

LGTM

@dataroaring dataroaring merged commit 303e275 into apache:master Dec 2, 2024
25 checks passed
github-actions bot pushed a commit that referenced this pull request Dec 2, 2024
… `PublishVersionTask.partitionVersionInfos` (#44846)

### What problem does this PR solve?

Problem Summary: When FE handles BEs' tablet report and finds that there
exists some expired txns on BE, it will generate publish version task.
`TPartitionVersionInfo` with same values may be added to
`transactionsToPublish` under same txn id many times when partitions
involved in this failed txn involves many tablets on this BE. Because it
uses `ArrayListMultimap`, these duplicate values may occupy a lot of
memories when the number of tablets is large.

### Release note

Fixed the issue of FE's memory occupation growing too fast in cases of
persistent load and clone failures on merge-on-write tables.

修复了在merge-on-write表上有持续的导入失败和clone失败的情况下,FE使用内存增长过快的问题。
dataroaring pushed a commit that referenced this pull request Dec 3, 2024
…sionInfo` in `PublishVersionTask.partitionVersionInfos` #44846 (#44883)

Cherry-picked from #44846

Co-authored-by: bobhan1 <baohan@selectdb.com>
dataroaring pushed a commit that referenced this pull request Dec 3, 2024
…sionInfo` in `PublishVersionTask.partitionVersionInfos` #44846 (#44885)

pick #44846
@gavinchou gavinchou mentioned this pull request Feb 18, 2025
deardeng pushed a commit to deardeng/incubator-doris that referenced this pull request Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. dev/2.1.8-merged dev/3.0.4-merged reviewed usercase Important user case type label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants