ivandika3 commented on code in PR #10052:
URL: https://github.com/apache/ozone/pull/10052#discussion_r3168629667
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/service/KeyLifecycleService.java:
##########
Review Comment:
Similar to how `processMultipartUploads` only handle rules with
`AbortIncompleteMultipartUploads` (excluding rules with expiration only), let's
filter `ruleList` to another `expirationRuleList` for rules that only contains
expiration only (no AbortIncompleteMultipartUpload only rules).
```java
List<OmLCRule> expirationRuleList = ruleList.stream()
.filter(r -> r.getExpiration() !=
null).collect(Collectors.toList());
```
Then call `evaluateBucket` using this list instead of `ruleList`.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]