HBASE-8413 Snapshot verify region will always fail if the HFile has been archived (Jerry He)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1471319 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
929776752e
commit
846acf6258
@ -216,7 +216,7 @@ public final class MasterSnapshotVerifier {
|
|||||||
String fileName = hfile.getPath().getName();
|
String fileName = hfile.getPath().getName();
|
||||||
Path file = new Path(realCfDir, fileName);
|
Path file = new Path(realCfDir, fileName);
|
||||||
Path archived = new Path(archivedCfDir, fileName);
|
Path archived = new Path(archivedCfDir, fileName);
|
||||||
if (!fs.exists(file) && !file.equals(archived)) {
|
if (!fs.exists(file) && !fs.exists(archived)) {
|
||||||
throw new CorruptedSnapshotException("Can't find hfile: " + hfile.getPath()
|
throw new CorruptedSnapshotException("Can't find hfile: " + hfile.getPath()
|
||||||
+ " in the real (" + realCfDir + ") or archive (" + archivedCfDir
|
+ " in the real (" + realCfDir + ") or archive (" + archivedCfDir
|
||||||
+ ") directory for the primary table.", snapshot);
|
+ ") directory for the primary table.", snapshot);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user