---
title: "HBase中几个存在thread contention的地方"
author: "standalone"
date: "2010-10-25T17:10:31Z"
tags: []
categories: ["编程语言"]
slug: "hbase-thread-contention"
draft: false
lastmod: "2010-10-25T17:10:31Z"
id: 793447
url: "https://standalone.iteye.com/blog/793447"
---

hbase code 0.26

从thread dump的结果看出来有几个地方是会导致线程BLOCKED。

```
"Thread-29" tid=38 daemon=false priority=5 state=BLOCKED
        at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta
        at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion
        at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion
        at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.getRegionLocation
        at org.apache.hadoop.hbase.client.ServerCallable.instantiateServer
        at org.apache.hadoop.hbase.client.HConnectionManager$TableServers.getRegionServerWithRetries
        at org.apache.hadoop.hbase.client.HTable.get
        at com.yahoo.ycsb.db.HBaseClient.read
        at com.yahoo.ycsb.DBWrapper.read
        at com.yahoo.ycsb.workloads.CoreWorkload.doTransactionRead
        at com.yahoo.ycsb.workloads.CoreWorkload.doTransaction
        at com.yahoo.ycsb.ClientThread.run
```

 这个好像记得在HBASE JIRA里面有提出，还没有被resolve。