HBASE-1212 merge tool expects regions all have different sequence ids (Jean-Marc)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1439495 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2013-01-28 16:54:58 +00:00
parent 92ce824b42
commit 8dd5332d5d
1 changed files with 0 additions and 10 deletions

View File

@ -4276,16 +4276,6 @@ public class HRegion implements HeapSize { // , Writable{
// Because we compacted the source regions we should have no more than two
// HStoreFiles per family and there will be no reference store
List<StoreFile> srcFiles = es.getValue();
if (srcFiles.size() == 2) {
long seqA = srcFiles.get(0).getMaxSequenceId();
long seqB = srcFiles.get(1).getMaxSequenceId();
if (seqA == seqB) {
// Can't have same sequenceid since on open of a store, this is what
// distingushes the files (see the map of stores how its keyed by
// sequenceid).
throw new IOException("Files have same sequenceid: " + seqA);
}
}
for (StoreFile hsf: srcFiles) {
StoreFile.rename(fs, hsf.getPath(),
StoreFile.getUniqueFile(fs, HStore.getStoreHomedir(tableDir,