yuzelin commented on code in PR #1168:
URL: https://github.com/apache/incubator-paimon/pull/1168#discussion_r1197613314
##########
paimon-core/src/main/java/org/apache/paimon/operation/FileStoreExpireImpl.java:
##########
@@ -88,6 +89,12 @@ public FileStoreExpireImpl(
SnapshotManager snapshotManager,
ManifestFile.Factory manifestFileFactory,
ManifestList.Factory manifestListFactory) {
+ Preconditions.checkArgument(
+ numRetainedMin >= 1,
+ "The minimum number of completed snapshots to retain should be
>= 1.");
+ Preconditions.checkArgument(
+ numRetainedMax > numRetainedMin,
+ "The maximum number of snapshots to retain should be > the
minimum number.");
Review Comment:
I think the limit should be `numRetainedMax >= numRetainedMin` because we
can set `numRetainedMax == numRetainedMin` to control exactly how many
snapshots are retained.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]