Discussion:
[jira] [Created] (HBASE-21574) createConnection / getTable should not return if there's no cluster available
Cosmin Lehene (JIRA)
2018-12-10 21:21:00 UTC
Permalink
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 = \{***@5192} "hconnection-0x32093c94"
hostnamesCanChange = true
pause = 100
pauseForCQTBE = 100
useMetaReplicas = false
metaReplicaCallTimeoutScanInMicroSecond = 1000000
numTries = 16
rpcTimeout = 60000
asyncProcess = \{***@5242}
stats = null
closed = false
aborted = false
clusterStatusListener = null
metaRegionLock = \{***@5249}
masterLock = \{***@5250}
batchPool = \{***@5240} "***@5bb40116[Running, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]"
metaLookupPool = null
cleanupPool = true
conf = \{***@5238} "Configuration: core-default.xml, core-site.xml, hbase-default.xml, hbase-site.xml"
connectionConfig = \{***@5239}
rpcClient = \{***@5251}
metaCache = \{***@5252}
metrics = null
user = \{User$***@5253} "clehene (auth:SIMPLE)"
rpcCallerFactory = \{***@5243}
rpcControllerFactory = \{***@5244}
interceptor = \{***@5254} "NoOpRetryableCallerInterceptor"
registry = \{***@5255}
backoffPolicy = \{ClientBackoffPolicyFactory$***@5256}
alternateBufferedMutatorClassName = null
userRegionLock = \{***@5257} "***@4d368ebc[Unlocked]"
clusterId = "default-cluster"
stubs = \{***@5259} size = 0
masterServiceState = \{ConnectionImplementation$***@5260} "MasterService"
table = \{***@5193} "customers;hconnection-0x32093c94"
connection = \{***@5192} "hconnection-0x32093c94"
tableName = \{***@5237} "customers"
configuration = \{***@5238} "Configuration: core-default.xml, core-site.xml, hbase-default.xml, hbase-site.xml"
connConfiguration = \{***@5239}
closed = false
scannerCaching = 2147483647
scannerMaxResultSize = 2097152
pool = \{***@5240} "***@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 = \{***@5241}
multiAp = \{***@5242}
rpcCallerFactory = \{***@5243}
rpcControllerFactory = \{***@5244}

{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Loading...