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

[AMORO-2273]: Fix highly memory usage when orphan file clean is enabled with too many manifest list file #2346

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

baiyangtx
Copy link
Contributor

@baiyangtx baiyangtx commented Nov 21, 2023

Why are the changes needed?

Close #2273.

Brief change log

  • Remove in-memory Content file cache for mixed-format Table Maintainer.
  • Refactor logic of fetch all manifest file info from a snapshot when doing orphan file clean.

How was this patch tested?

  • Add some test cases that check the changes thoroughly including negative and positive cases if possible

  • Add screenshots for manual tests if appropriate

  • Run test locally before making a pull request

Documentation

  • Does this pull request introduce a new feature? (no)

@github-actions github-actions bot added the module:ams-dashboard Ams dashboard module label Nov 21, 2023
# Conflicts:
#	ams/server/src/main/java/com/netease/arctic/server/optimizing/maintainer/MixedTableMaintainer.java
@baiyangtx baiyangtx marked this pull request as ready for review November 21, 2023 11:40
@CLAassistant
Copy link

CLAassistant commented Nov 22, 2023

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions bot added the module:core Core module label Nov 23, 2023
Copy link

codecov bot commented Nov 23, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (38c4986) 53.46% compared to head (798ca0a) 53.53%.
Report is 1 commits behind head on master.

Files Patch % Lines
.../netease/arctic/server/utils/IcebergTableUtil.java 90.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2346      +/-   ##
============================================
+ Coverage     53.46%   53.53%   +0.07%     
- Complexity     4358     4371      +13     
============================================
  Files           517      517              
  Lines         29861    29870       +9     
  Branches       2908     2909       +1     
============================================
+ Hits          15964    15992      +28     
+ Misses        12608    12590      -18     
+ Partials       1289     1288       -1     
Flag Coverage Δ
core 54.02% <93.93%> (+0.09%) ⬆️
trino 50.93% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@shidayang
Copy link
Contributor

Thanks @baiyangtx for contributions, I left some comment,BTW the ci is unpass

# Conflicts:
#	ams/server/src/main/java/com/netease/arctic/server/optimizing/maintainer/IcebergTableMaintainer.java
#	ams/server/src/main/java/com/netease/arctic/server/optimizing/maintainer/MixedTableMaintainer.java
@shidayang
Copy link
Contributor

CI unpass


ParallelIterable<StructLike> parallelIterable =
new ParallelIterable<>(transform, manifestIoExecutor);
parallelIterable.forEach(
Copy link
Contributor

Choose a reason for hiding this comment

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

ParallelIterable need close

Copy link
Contributor

@shidayang shidayang left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module:ams-dashboard Ams dashboard module module:core Core module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: AMS get get hang after few days with kuberntes deployment
5 participants