-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-29572 Clean up output directory when copying the manifest fails during snapshot #7275
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
base: branch-2.4
Are you sure you want to change the base?
Conversation
If an export snapshot fails in copying .snapshotInfo and manifest when we use export snapshot tool to export snapshot to other cluster, which may leave behind an empty snapshot directory under .snapshot (snapshot.export.skip.tmp = true) or .snapshot/.tmp (snapshot.export.skip.tmp = false) without .snapshotInfo file and manifest. SnapshotFileCache periodically refreshes the cache by traversing all snapshot directories under .snapshot and reading the .snapshotInfo file and manifest to update the cache. If it can not read .snapshotInfo from a snapshot directory, it will throw CorruptedSnapshotException. getSnapshotsInProgress may also result in such a situation when it attempts to retrieve the .snapshotInfo under each snapshot directory under .snapshot/.tmp. So we need to clean up the output snapshot dir before throwing exception and aborting this job if copying manifest fails. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
… during snapshot export
5fef090
to
0855937
Compare
HBASE-29572 Clean up output directory when copying the manifest fails during snapshot