HBASE-4942 HMaster is unable to start of HFile V1 is used (Honghua Zhu)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1210303 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1a2ea74705
commit
5021d29ef4
|
@ -451,6 +451,7 @@ Release 0.92.0 - Unreleased
|
||||||
ubuntu machine
|
ubuntu machine
|
||||||
HBASE-4878 Master crash when splitting hlog may cause data loss (Chunhui Shen)
|
HBASE-4878 Master crash when splitting hlog may cause data loss (Chunhui Shen)
|
||||||
HBASE-4945 NPE in HRegion.bulkLoadHFiles (Andrew P and Lars H)
|
HBASE-4945 NPE in HRegion.bulkLoadHFiles (Andrew P and Lars H)
|
||||||
|
HBASE-4942 HMaster is unable to start of HFile V1 is used (Honghua Zhu)
|
||||||
|
|
||||||
TESTS
|
TESTS
|
||||||
HBASE-4450 test for number of blocks read: to serve as baseline for expected
|
HBASE-4450 test for number of blocks read: to serve as baseline for expected
|
||||||
|
|
|
@ -364,7 +364,7 @@ public class HFileReaderV1 extends AbstractHFileReader {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void close(boolean evictOnClose) throws IOException {
|
public void close(boolean evictOnClose) throws IOException {
|
||||||
if (evictOnClose) {
|
if (evictOnClose && cacheConf.isBlockCacheEnabled()) {
|
||||||
int numEvicted = 0;
|
int numEvicted = 0;
|
||||||
for (int i = 0; i < dataBlockIndexReader.getRootBlockCount(); i++) {
|
for (int i = 0; i < dataBlockIndexReader.getRootBlockCount(); i++) {
|
||||||
if (cacheConf.getBlockCache().evictBlock(HFile.getBlockCacheKey(name,
|
if (cacheConf.getBlockCache().evictBlock(HFile.getBlockCacheKey(name,
|
||||||
|
|
Loading…
Reference in New Issue