HBASE-26155 JVM crash when scan (#3553)
Signed-off-by: Michael Stack <stack@apache.org> Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
parent
d307a8f2e8
commit
238c9b40bf
|
@ -430,6 +430,11 @@ public class BucketCache implements BlockCache, HeapSize {
|
|||
if (cacheEnabled) {
|
||||
if (backingMap.containsKey(cacheKey) || ramCache.containsKey(cacheKey)) {
|
||||
if (BlockCacheUtil.shouldReplaceExistingCacheBlock(this, cacheKey, cachedItem)) {
|
||||
BucketEntry bucketEntry = backingMap.get(cacheKey);
|
||||
if (bucketEntry != null && bucketEntry.isRpcRef()) {
|
||||
// avoid replace when there are RPC refs for the bucket entry in bucket cache
|
||||
return;
|
||||
}
|
||||
cacheBlockWithWaitInternal(cacheKey, cachedItem, inMemory, wait);
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -29,10 +29,9 @@ import org.apache.hadoop.hbase.Cell;
|
|||
import org.apache.hadoop.hbase.CellComparator;
|
||||
import org.apache.hadoop.hbase.CellUtil;
|
||||
import org.apache.hadoop.hbase.DoNotRetryIOException;
|
||||
import org.apache.hadoop.hbase.HConstants;
|
||||
import org.apache.hadoop.hbase.PrivateCellUtil;
|
||||
import org.apache.hadoop.hbase.KeyValue;
|
||||
import org.apache.hadoop.hbase.KeyValueUtil;
|
||||
import org.apache.hadoop.hbase.PrivateCellUtil;
|
||||
import org.apache.hadoop.hbase.PrivateConstants;
|
||||
import org.apache.hadoop.hbase.client.IsolationLevel;
|
||||
import org.apache.hadoop.hbase.client.Scan;
|
||||
|
|
Loading…
Reference in New Issue