yuqi1129 commented on code in PR #10595:
URL: https://github.com/apache/gravitino/pull/10595#discussion_r3022309298
##########
core/src/main/java/org/apache/gravitino/storage/relational/service/PolicyMetaService.java:
##########
@@ -418,24 +418,33 @@ public int deletePolicyVersionsByRetentionCount(Long
versionRetentionCount, int
// soft delete old versions that are smaller than or equal to (maxVersion -
// versionRetentionCount).
int totalDeletedCount = 0;
+ int remaining = limit;
for (PolicyMaxVersionPO policyMaxVersion : policyMaxVersions) {
Review Comment:
Can you fix similar problems in this PR? please also take a look
`deleteFilesetVersionsByRetentionCount`,
`deleteFunctionVersionsByRetentionCount`.
--
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]