taklwu commented on code in PR #5469:
URL: https://github.com/apache/hbase/pull/5469#discussion_r1380468735


##########
hbase-asyncfs/src/main/java/org/apache/hadoop/hbase/util/RecoverLeaseFSUtils.java:
##########
@@ -127,15 +134,16 @@ private static boolean recoverDFSFileLease(final 
DistributedFileSystem dfs, fina
             Thread.sleep(conf.getInt("hbase.lease.recovery.pause", 1000));
             if (findIsFileClosedMeth) {
               try {
+                SafeMode fsWithSafeMode = (SafeMode) fs;
                 isFileClosedMeth =
-                  dfs.getClass().getMethod("isFileClosed", new Class[] { 
Path.class });
+                  fsWithSafeMode.getClass().getMethod("isFileClosed", new 
Class[] { Path.class });

Review Comment:
   I should have resolve this concern in the latest patch, but I'm trying to 
get green build...



-- 
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-unsubscr...@hbase.apache.org

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

Reply via email to