pan3793 commented on code in PR #4418:
URL: https://github.com/apache/kyuubi/pull/4418#discussion_r1119974021
##########
kyuubi-server/src/main/scala/org/apache/kyuubi/server/metadata/MetadataManager.scala:
##########
@@ -37,44 +37,55 @@ class MetadataManager extends
AbstractService("MetadataManager") {
private var _metadataStore: MetadataStore = _
// Visible for testing.
- private[metadata] val identifierRequestsRetryRefs =
+ private[metadata] val identifierRequestsAsyncRetryRefs =
new ConcurrentHashMap[String, MetadataRequestsRetryRef]()
// Visible for testing.
- private[metadata] val identifierRequestsRetryingCounts =
+ private[metadata] val identifierRequestsAsyncRetryingCounts =
new ConcurrentHashMap[String, AtomicInteger]()
- private val requestsRetryTrigger =
-
ThreadUtils.newDaemonSingleThreadScheduledExecutor("metadata-requests-retry-trigger")
+ private lazy val requestsRetryInterval =
+ conf.get(KyuubiConf.METADATA_REQUEST_RETRY_INTERVAL)
- private var requestsRetryExecutor: ThreadPoolExecutor = _
+ private lazy val requestsAsyncRetryEnabled =
+ conf.get(KyuubiConf.METADATA_REQUEST_ASYNC_RETRY_ENABLED)
Review Comment:
yea
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]