ivandika3 commented on code in PR #8681:
URL: https://github.com/apache/ozone/pull/8681#discussion_r2194097989
##########
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmLifecycleConfiguration.java:
##########
@@ -158,10 +160,10 @@ public String toString() {
* Returns formatted key to be used as prevKey when listing lifecycle
* configurations.
*
- * @return volume/bucket
+ * @return /volume/bucket
*/
public String getFormattedKey() {
- return volume + "/" + bucket;
+ return OzoneConsts.OM_KEY_PREFIX + volume + OzoneConsts.OM_KEY_PREFIX +
bucket;
}
Review Comment:
In this case, we should use `getBucketKey` instead. This `getFormattedKey`
seems to be redundant in the first place.
--
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]