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:
mbertozzi 2013-04-24 09:27:22 +00:00
parent 929776752e
commit 846acf6258
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ public final class MasterSnapshotVerifier {
String fileName = hfile.getPath().getName();
Path file = new Path(realCfDir, 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()
+ " in the real (" + realCfDir + ") or archive (" + archivedCfDir
+ ") directory for the primary table.", snapshot);