Skip to content

Conversation

@Aitozi
Copy link
Contributor

@Aitozi Aitozi commented May 22, 2024

Purpose

This PR is the second step of #3178 to simply the clean up logic of snapshot and changelog

Tests

API and Format

Documentation

.maxDeletes(options.snapshotExpireLimit())
.retainMin(options.changelogNumRetainMin())
.retainMax(options.changelogNumRetainMax());
newExpireChangelog().config(options.expireConfig().build());
Copy link
Contributor

Choose a reason for hiding this comment

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

reuse options.expireConfig().build().


protected final Map<BinaryRow, Set<Integer>> deletionBuckets;
protected final Executor ioExecutor;
protected boolean changelogDecoupled;
Copy link
Contributor

Choose a reason for hiding this comment

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

changelogDecoupled who use this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For example, SnapshotDeletion will use this to determine whether to clean changelog manifests. It will also be used in ChangelogDeletion in following PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

but there is no assignment for it.

maybe you need to add it in next pr.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is setChangelogDecoupled . I feel difficult to make this field final, so I add a set method for it.

@Aitozi Aitozi force-pushed the delta-2 branch 4 times, most recently from 03e0fb1 to 621a34e Compare May 24, 2024 03:48
public Predicate<ManifestEntry> dataFileSkipper(Snapshot fromSnapshot) throws Exception {
return dataFileSkipper(Collections.singletonList(fromSnapshot));
}
protected Collection<ManifestEntry> readMergedDataFiles(Snapshot snapshot) throws IOException {
Copy link
Contributor

Choose a reason for hiding this comment

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

Duplicate codes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The latest commit is reverted, please take a look again when you are free.

Copy link
Contributor

@JingsongLi JingsongLi left a comment

Choose a reason for hiding this comment

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

+1

@JingsongLi JingsongLi merged commit f1154f5 into apache:master May 27, 2024
sunxiaojian pushed a commit to sunxiaojian/paimon that referenced this pull request May 28, 2024
joyCurry30 pushed a commit to joyCurry30/paimon that referenced this pull request May 30, 2024
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.

2 participants