infraio commented on a change in pull request #1916:
URL: https://github.com/apache/hbase/pull/1916#discussion_r442589333
##########
File path:
hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/CloneSnapshotProcedure.java
##########
@@ -457,6 +457,10 @@ private void postCloneSnapshot(final MasterProcedureEnv
env)
// 1. Create Table Descriptor
// using a copy of descriptor, table will be created enabling first
final Path tempTableDir = FSUtils.getTableDir(tempdir,
tableDescriptor.getTableName());
+ if (FSUtils.isExists(mfs.getFileSystem(), tempTableDir)) {
+ LOG.warn("temp table dir already exists on disk: {}, will be deleted.",
tempTableDir);
+ FSUtils.deleteDirectory(mfs.getFileSystem(), tempTableDir);
+ }
Review comment:
Sorry. I didn't follow here is why region dir changed? Add more comments
to code too?
----------------------------------------------------------------
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:
[email protected]