HBASE-21088 HStoreFile should be closed in HStore#hasReferences
This commit is contained in:
parent
e826e3f2b8
commit
c1cd6d5a89
|
@ -1670,6 +1670,17 @@ public class HStore implements Store, HeapSize, StoreConfigInformation, Propagat
|
||||||
LOG.error("Error trying to determine if store has references, assuming references exists",
|
LOG.error("Error trying to determine if store has references, assuming references exists",
|
||||||
ioe);
|
ioe);
|
||||||
return true;
|
return true;
|
||||||
|
} finally {
|
||||||
|
if (reloadedStoreFiles != null) {
|
||||||
|
for (HStoreFile storeFile : reloadedStoreFiles) {
|
||||||
|
try {
|
||||||
|
storeFile.closeStoreFile(false);
|
||||||
|
} catch (IOException ioe) {
|
||||||
|
LOG.warn("Encountered exception closing " + storeFile + ": " + ioe.getMessage());
|
||||||
|
// continue with closing the remaining store files
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue