-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-24546 CloneSnapshotProcedure unlimited retry #1916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| if (FSUtils.isExists(mfs.getFileSystem(), tempTableDir)) { | ||
| LOG.warn("temp table dir already exists on disk: {}, will be deleted.", tempTableDir); | ||
| FSUtils.deleteDirectory(mfs.getFileSystem(), tempTableDir); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem is: the retry will never succeed if the region dirs exist? Add comment here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, RestoreSnapshotHelper.restoreHdfsRegions will remove the region dirs, but CloneSnapshotProcedure.createFilesystemLayout not allow exist remove. retrying will have the same effect
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry. I didn't follow here is why region dir changed? Add more comments to code too?
|
💔 -1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
infraio
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
|
🎊 +1 overall
This message was automatically generated. |
Signed-off-by: Guanghao Zhang <zghao@apache.org> (cherry picked from commit 1c84b53) Change-Id: Ic383d3d1942f319c12a596f298910ac699d9677f
No description provided.