You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "yunfei liu (JIRA)" <ji...@apache.org> on 2017/03/10 09:34:04 UTC
[jira] [Assigned] (HIVE-16174) Update
MetricsConstant.WAITING_COMPILE_OPS metric when we aquire lock failed in
Driver
[ https://issues.apache.org/jira/browse/HIVE-16174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
yunfei liu reassigned HIVE-16174:
---------------------------------
> Update MetricsConstant.WAITING_COMPILE_OPS metric when we aquire lock failed in Driver
> --------------------------------------------------------------------------------------
>
> Key: HIVE-16174
> URL: https://issues.apache.org/jira/browse/HIVE-16174
> Project: Hive
> Issue Type: Bug
> Components: Query Planning
> Affects Versions: 2.2.0
> Reporter: yunfei liu
> Assignee: yunfei liu
> Priority: Minor
>
> In Driver#compileInternal method (as the code snippet below ), we need to update MetricsConstant.WAITING_COMPILE_OPS metric correctly before return if lock can not be acquired.
> {code}
> Metrics metrics = MetricsFactory.getInstance();
> if (metrics != null) {
> metrics.incrementCounter(MetricsConstant.WAITING_COMPILE_OPS, 1);
> }
> final ReentrantLock compileLock = tryAcquireCompileLock(isParallelEnabled,
> command);
> if (compileLock == null) {
> return ErrorMsg.COMPILE_LOCK_TIMED_OUT.getErrorCode();
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)