virajjasani opened a new pull request, #1943: URL: https://github.com/apache/phoenix/pull/1943
Jira: PHOENIX-7363 **All meta handlers on SYSTEM.CATALOG regionserver exhausted within CQSI#init** After allowing readLock for getTable API at the server side ([PHOENIX-6066](https://issues.apache.org/jira/browse/PHOENIX-6066)), it seems that under heavy load, all meta handler threads can get exhausted within ConnectionQueryServicesImpl initialization as part of any of the MetaDataEndpointImpl coproc operations. When the table details are not present in the cache, MetaDataEndpointImpl coproc can attempt to create new connection on the server side in order to scan SYSTEM.CATALOG. Under heavy load, several (all of) meta handlers – which are dedicated for all metadata (system table) operations – could attempt to create server side connection, which can further lead into creating new PhoenixConnection to execute CREATE TABLE DDL for SYSTEM.CATALOG in order to ensure that the System tables exist. Only one thread should update the metadata cache for a given table at a given time. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
