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-1960] Refactor data expiration to TableMaintainer #2328

Merged
merged 33 commits into from
Nov 30, 2023

Conversation

XBaith
Copy link
Contributor

@XBaith XBaith commented Nov 20, 2023

Why are the changes needed?

Enhance #1960.

Brief change log

  • Convenient to expand and manage

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)
  • If yes, how is the feature documented? (not documented)

@github-actions github-actions bot added the module:ams-dashboard Ams dashboard module label Nov 20, 2023
Copy link

codecov bot commented Nov 20, 2023

Codecov Report

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

Comparison is base (ca2061e) 52.96% compared to head (50e3da0) 52.96%.

Files Patch % Lines
.../optimizing/maintainer/IcebergTableMaintainer.java 71.90% 44 Missing and 15 partials ⚠️
...er/optimizing/maintainer/MixedTableMaintainer.java 71.08% 24 Missing ⚠️
...ease/arctic/server/table/DataExpirationConfig.java 38.88% 20 Missing and 2 partials ⚠️
...ic/server/table/executor/DataExpiringExecutor.java 0.00% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2328      +/-   ##
============================================
- Coverage     52.96%   52.96%   -0.01%     
- Complexity     4303     4310       +7     
============================================
  Files           516      516              
  Lines         29716    29799      +83     
  Branches       2896     2901       +5     
============================================
+ Hits          15739    15782      +43     
- Misses        12699    12738      +39     
- Partials       1278     1279       +1     
Flag Coverage Δ
core 53.34% <67.46%> (+0.01%) ⬆️
trino 50.93% <ø> (-0.09%) ⬇️

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.

# 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
@CLAassistant
Copy link

CLAassistant commented Nov 22, 2023

CLA assistant check
All committers have signed the CLA.

@XBaith XBaith requested a review from shidayang November 22, 2023 09:39
@shidayang
Copy link
Contributor

I understand that the only difference between partition expiration in change+base and Iceberg is the calculation logic for determining which partitions need to expire. Change+base requires consideration of two tables. So, can we calculate them separately and pass the results to change and base using MixedTableMaintainer?

@github-actions github-actions bot added type:docs Improvements or additions to documentation module:core Core module labels Nov 24, 2023
@XBaith XBaith requested a review from shidayang November 24, 2023 07:40
# 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
#	ams/server/src/main/java/com/netease/arctic/server/optimizing/maintainer/TableMaintainer.java
@shidayang
Copy link
Contributor

LGTM

@shidayang shidayang merged commit d5299ef into apache:master Nov 30, 2023
6 of 7 checks passed
@XBaith XBaith deleted the refactor-expire branch December 5, 2023 09:59
wangtaohz added a commit to wangtaohz/amoro that referenced this pull request Dec 20, 2023
zhoujinsong added a commit that referenced this pull request Dec 21, 2023
…hots with optimized sequence (#2456)

* [AMORO-1720] Fix Mixed Format KeyedTable expiring all the snapshots with optimized sequence (#2394)

* should not expire the latest snapshot contains optimized sequence

* add visible for testing

* add fetchLatestNonOptimizedSnapshotTime for base store

* get hive locations return the uri path

* refactor codes and fix comments

* improve for exclude files is empty for expring snapshots

---------

Co-authored-by: ZhouJinsong <zhoujinsong0505@163.com>

* revert changes introduced from #2328

---------

Co-authored-by: ZhouJinsong <zhoujinsong0505@163.com>
ShawHee pushed a commit to ShawHee/arctic that referenced this pull request Dec 29, 2023
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 type:docs Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants