HBASE-945 Be consistent in use of qualified/unqualified mapfile paths
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@706681 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fd5543190c
commit
b5200e0ea6
|
@ -36,6 +36,7 @@ Release 0.19.0 - Unreleased
|
||||||
With J-D's one line patch, test cases now appear to work and
|
With J-D's one line patch, test cases now appear to work and
|
||||||
PerformanceEvaluation works as before.
|
PerformanceEvaluation works as before.
|
||||||
HBASE-939 NPE in HStoreKey
|
HBASE-939 NPE in HStoreKey
|
||||||
|
HBASE-945 Be consistent in use of qualified/unqualified mapfile paths
|
||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
HBASE-901 Add a limit to key length, check key and value length on client side
|
HBASE-901 Add a limit to key length, check key and value length on client side
|
||||||
|
|
|
@ -459,16 +459,17 @@ public class HStore implements HConstants {
|
||||||
results.put(Long.valueOf(storeSeqId), curfile);
|
results.put(Long.valueOf(storeSeqId), curfile);
|
||||||
// Keep list of sympathetic data mapfiles for cleaning info dir in next
|
// Keep list of sympathetic data mapfiles for cleaning info dir in next
|
||||||
// section. Make sure path is fully qualified for compare.
|
// section. Make sure path is fully qualified for compare.
|
||||||
mapfiles.add(mapfile);
|
mapfiles.add(this.fs.makeQualified(mapfile));
|
||||||
}
|
}
|
||||||
|
|
||||||
// List paths by experience returns fully qualified names -- at least when
|
// List paths by experience returns fully qualified names -- at least when
|
||||||
// running on a mini hdfs cluster.
|
// running on a mini hdfs cluster.
|
||||||
FileStatus datfiles[] = fs.listStatus(mapdir);
|
FileStatus [] datfiles = fs.listStatus(mapdir);
|
||||||
for (int i = 0; i < datfiles.length; i++) {
|
for (int i = 0; i < datfiles.length; i++) {
|
||||||
Path p = datfiles[i].getPath();
|
Path p = datfiles[i].getPath();
|
||||||
// If does not have sympathetic info file, delete.
|
// If does not have sympathetic info file, delete.
|
||||||
if (!mapfiles.contains(fs.makeQualified(p))) {
|
Path qualifiedP = fs.makeQualified(p);
|
||||||
|
if (!mapfiles.contains(qualifiedP)) {
|
||||||
fs.delete(p, true);
|
fs.delete(p, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue