[
https://issues.apache.org/jira/browse/HBASE-16696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15516995#comment-15516995
]
Anoop Sam John commented on HBASE-16696:
----------------------------------------
Is this a flaky test from long time?
{code}
ScanThread[] scanThreads = initiateScan(table, true);
Thread.sleep(200);
Iterator<CachedBlock> iterator = cache.iterator();
boolean usedBlocksFound = false;
int refCount = 0;
int noOfBlocksWithRef = 0;
while (iterator.hasNext()) {
CachedBlock next = iterator.next();
BlockCacheKey cacheKey = new BlockCacheKey(next.getFilename(),
next.getOffset());
if (cache instanceof BucketCache) {
refCount = ((BucketCache) cache).getRefCount(cacheKey);
} else if (cache instanceof CombinedBlockCache) {
refCount = ((CombinedBlockCache) cache).getRefCount(cacheKey);
} else {
continue;
}
if (refCount != 0) {
// Blocks will be with count 3
System.out.println("The refCount is " + refCount);
assertEquals(NO_OF_THREADS, refCount);
{code}
3 scanner threads were started and we sleep for 200 msec and then assert that
blocks have 3 as ref count. What is a scan got completed in btw? Then that
ref count dec would have happened. Ping [~ram_krish]
> TestBlockEvictionFromClient fails in master branch
> --------------------------------------------------
>
> Key: HBASE-16696
> URL: https://issues.apache.org/jira/browse/HBASE-16696
> Project: HBase
> Issue Type: Bug
> Reporter: Ted Yu
> Attachments: build-1638.out, build-1639.out
>
>
> TestBlockEvictionFromClient consistently fails in master branch.
> From existing Jenkins builds, looks like this started with build 1639.
> See attached Jenkins console logs.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)