huaxiangsun commented on a change in pull request #1791: URL: https://github.com/apache/hbase/pull/1791#discussion_r434772239
########## File path: hbase-server/src/main/java/org/apache/hadoop/hbase/master/snapshot/SnapshotHFileCleaner.java ########## @@ -93,12 +94,17 @@ public void setConf(final Configuration conf) { DEFAULT_HFILE_CACHE_REFRESH_PERIOD); final FileSystem fs = CommonFSUtils.getCurrentFileSystem(conf); Path rootDir = CommonFSUtils.getRootDir(conf); - cache = new SnapshotFileCache(fs, rootDir, cacheRefreshPeriod, cacheRefreshPeriod, - "snapshot-hfile-cleaner-cache-refresher", new SnapshotFileCache.SnapshotFileInspector() { + Path workingDir = SnapshotDescriptionUtils.getWorkingSnapshotDir(rootDir, conf); + FileSystem workingFs = workingDir.getFileSystem(conf); + + cache = new SnapshotFileCache(fs, rootDir, workingFs, workingDir, cacheRefreshPeriod, + cacheRefreshPeriod, "snapshot-hfile-cleaner-cache-refresher", + new SnapshotFileCache.SnapshotFileInspector() { @Override - public Collection<String> filesUnderSnapshot(final Path snapshotDir) + public Collection<String> filesUnderSnapshot(final FileSystem workingFs, Review comment: Yeah, let me change it back to fs, workingFs is misleading. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org