[ https://issues.apache.org/jira/browse/HIVE-21912?focusedWorklogId=271770&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-271770 ]
ASF GitHub Bot logged work on HIVE-21912: ----------------------------------------- Author: ASF GitHub Bot Created on: 03/Jul/19 17:45 Start Date: 03/Jul/19 17:45 Worklog Time Spent: 10m Work Description: odraese commented on pull request #698: HIVE-21912: Implement DisablingDaemonStatisticsHandler URL: https://github.com/apache/hive/pull/698#discussion_r300031170 ########## File path: llap-client/src/java/org/apache/hadoop/hive/llap/registry/impl/LlapZookeeperRegistryImpl.java ########## @@ -416,4 +423,65 @@ protected String getZkPathUser(Configuration conf) { // rather than relying on RegistryUtils.currentUser(). return HiveConf.getVar(conf, ConfVars.LLAP_ZK_REGISTRY_USER, RegistryUtils.currentUser()); } + + /** + * Locks the Llap Cluster for configuration change by setting the next possible configuration + * change time. Until this time is reached the configuration should not be changed. + * @param nextMinConfigChangeTime The next time when the cluster can be reconfigured + * @return The result of the change (success if the lock is succeeded, and the next possible + * configuration change time + */ + public ConfigChangeLockResult lockForConfigChange(long nextMinConfigChangeTime) { + try { + if (nextChangeTime == null) { + // Create the node with the /llap-sasl/hiveuser/hostname/config-change/next-change path without retry + nextChangeTime = new DistributedAtomicLong(zooKeeperClient, + String.join("/", workersPath.substring(0, workersPath.lastIndexOf('/')), CONFIG_CHANGE_PATH, + CONFIG_CHANGE_NODE), (i, j, sleeper) -> false); Review comment: So, we generally don't want to allow retries to set this? Does a retry mean that we had a optimistic locking conflict and some other node already updated the time value here? Or does a communication error (with ZK) also trigger a retry? ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 271770) Time Spent: 1h 10m (was: 1h) > Implement BlacklistingLlapMetricsListener > ----------------------------------------- > > Key: HIVE-21912 > URL: https://issues.apache.org/jira/browse/HIVE-21912 > Project: Hive > Issue Type: Sub-task > Components: llap, Tez > Reporter: Peter Vary > Assignee: Peter Vary > Priority: Major > Labels: pull-request-available > Attachments: HIVE-21912.patch, HIVE-21912.wip-2.patch, > HIVE-21912.wip.patch > > Time Spent: 1h 10m > Remaining Estimate: 0h > > We should implement a DaemonStatisticsHandler which: > * If a node average response time is bigger than 150% (configurable) of the > other nodes > * If the other nodes has enough empty executors to handle the requests > Then disables the limping node. -- This message was sent by Atlassian JIRA (v7.6.3#76005)