swamirishi commented on code in PR #9084:
URL: https://github.com/apache/ozone/pull/9084#discussion_r2396379980


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OmMetadataManagerImpl.java:
##########
@@ -544,6 +545,15 @@ public String getBucketKeyPrefixFSO(String volume, String 
bucket) throws IOExcep
     return getOzoneKeyFSO(volume, bucket, OM_KEY_PREFIX);
   }
 
+  /**
+   * {@inheritDoc}
+   */
+  @Override
+  public Pair<Long, Long> getVolumeBucketIdPairFSO(String fsoKey) {
+    String[] keySplit = fsoKey.split(OM_KEY_PREFIX);
+    return Pair.of(Long.parseLong(keySplit[1]), Long.parseLong(keySplit[2]));

Review Comment:
   No this is the only place. However I am throwing a checked exception if 
there is an exception while parsing



-- 
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]

Reply via email to