You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Cosmin Lehene (JIRA)" <ji...@apache.org> on 2018/12/10 21:21:00 UTC
[jira] [Created] (HBASE-21574) createConnection / getTable should
not return if there's no cluster available
Cosmin Lehene created HBASE-21574:
-------------------------------------
Summary: createConnection / getTable should not return if there's no cluster available
Key: HBASE-21574
URL: https://issues.apache.org/jira/browse/HBASE-21574
Project: HBase
Issue Type: Bug
Components: Client
Affects Versions: 2.1.1
Reporter: Cosmin Lehene
Fix For: 2.1.2
You can get a connection / table successfully with no cluster (no zk, hms, hrs) and it also says it's open (closed = false)
{code}
Connection con = ConnectionFactory.createConnection(getConfiguration());
con.getTable(TableName.valueOf(customersTable));
{code}
{code}
con = \{ConnectionImplementation@5192} "hconnection-0x32093c94"
hostnamesCanChange = true
pause = 100
pauseForCQTBE = 100
useMetaReplicas = false
metaReplicaCallTimeoutScanInMicroSecond = 1000000
numTries = 16
rpcTimeout = 60000
asyncProcess = \{AsyncProcess@5242}
stats = null
closed = false
aborted = false
clusterStatusListener = null
metaRegionLock = \{Object@5249}
masterLock = \{Object@5250}
batchPool = \{ThreadPoolExecutor@5240} "java.util.concurrent.ThreadPoolExecutor@5bb40116[Running, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]"
metaLookupPool = null
cleanupPool = true
conf = \{Configuration@5238} "Configuration: core-default.xml, core-site.xml, hbase-default.xml, hbase-site.xml"
connectionConfig = \{ConnectionConfiguration@5239}
rpcClient = \{NettyRpcClient@5251}
metaCache = \{MetaCache@5252}
metrics = null
user = \{User$SecureHadoopUser@5253} "clehene (auth:SIMPLE)"
rpcCallerFactory = \{RpcRetryingCallerFactory@5243}
rpcControllerFactory = \{RpcControllerFactory@5244}
interceptor = \{NoOpRetryableCallerInterceptor@5254} "NoOpRetryableCallerInterceptor"
registry = \{ZKAsyncRegistry@5255}
backoffPolicy = \{ClientBackoffPolicyFactory$NoBackoffPolicy@5256}
alternateBufferedMutatorClassName = null
userRegionLock = \{ReentrantLock@5257} "java.util.concurrent.locks.ReentrantLock@4d368ebc[Unlocked]"
clusterId = "default-cluster"
stubs = \{ConcurrentHashMap@5259} size = 0
masterServiceState = \{ConnectionImplementation$MasterServiceState@5260} "MasterService"
table = \{HTable@5193} "customers;hconnection-0x32093c94"
connection = \{ConnectionImplementation@5192} "hconnection-0x32093c94"
tableName = \{TableName@5237} "customers"
configuration = \{Configuration@5238} "Configuration: core-default.xml, core-site.xml, hbase-default.xml, hbase-site.xml"
connConfiguration = \{ConnectionConfiguration@5239}
closed = false
scannerCaching = 2147483647
scannerMaxResultSize = 2097152
pool = \{ThreadPoolExecutor@5240} "java.util.concurrent.ThreadPoolExecutor@5bb40116[Running, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]"
operationTimeoutMs = 1200000
rpcTimeoutMs = 60000
readRpcTimeoutMs = 60000
writeRpcTimeoutMs = 60000
cleanupPoolOnClose = false
locator = \{HRegionLocator@5241}
multiAp = \{AsyncProcess@5242}
rpcCallerFactory = \{RpcRetryingCallerFactory@5243}
rpcControllerFactory = \{RpcControllerFactory@5244}
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)