You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "LZD-PratyushBhatt (via GitHub)" <gi...@apache.org> on 2023/09/11 17:37:18 UTC

[GitHub] [ozone] LZD-PratyushBhatt commented on a diff in pull request #5259: HDDS-9255. LeaseRecovery CLI Should work for O3fs path.

LZD-PratyushBhatt commented on code in PR #5259:
URL: https://github.com/apache/ozone/pull/5259#discussion_r1321868878


##########
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/debug/LeaseRecoverer.java:
##########
@@ -74,6 +75,8 @@ public Void call() throws Exception {
     FileSystem fs = FileSystem.get(uri, configuration);
     if (fs instanceof RootedOzoneFileSystem) {
       ((RootedOzoneFileSystem) fs).recoverLease(new Path(uri));
+    } else if (fs instanceof OzoneFileSystem) {
+      ((OzoneFileSystem) fs).recoverLease(new Path(uri));

Review Comment:
   Made the changes, please review. Thanks!



-- 
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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org