[
https://issues.apache.org/jira/browse/HIVE-20761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16654620#comment-16654620
]
Hive QA commented on HIVE-20761:
--------------------------------
Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12944380/HIVE-20761.01.patch
{color:red}ERROR:{color} -1 due to no test(s) being added or modified.
{color:green}SUCCESS:{color} +1 due to 15096 tests passed
Test results:
https://builds.apache.org/job/PreCommit-HIVE-Build/14533/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/14533/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-14533/
Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.YetusPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
{noformat}
This message is automatically generated.
ATTACHMENT ID: 12944380 - PreCommit-HIVE-Build
> Select for update on notification_sequence table has retry interval and
> retries count too small.
> ------------------------------------------------------------------------------------------------
>
> Key: HIVE-20761
> URL: https://issues.apache.org/jira/browse/HIVE-20761
> Project: Hive
> Issue Type: Bug
> Components: HiveServer2, Metastore
> Affects Versions: 4.0.0
> Reporter: Sankar Hariappan
> Assignee: Sankar Hariappan
> Priority: Minor
> Labels: Metastore
> Attachments: HIVE-20761.01.patch
>
>
> Hive DDL's are intermittently failing with Error- Couldn't acquire the DB log
> notification lock because we reached the maximum # of retries: 5 retries
> {code:java}
> Error while processing statement: FAILED: Execution Error, return code 1 from
> org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:Couldn't
> acquire the DB log notification lock because we reached the maximum # of
> retries: 5 retries. If this happens too often, then is recommended to
> increase the maximum number of retries on the
> hive.notification.sequence.lock.max.retries configuration :: Error executing
> SQL query "select "NEXT_EVENT_ID" from "NOTIFICATION_SEQUENCE" for update".)
> 2018-08-28 01:17:56,808|INFO|MainThread|machine.py:183 -
> run()||GUID=94e6ff4d-5db8-45eb-8654-76f546e7f0b3|java.sql.SQLException: Error
> while processing statement: FAILED: Execution Error, return code 1 from
> org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:Couldn't
> acquire the DB log notification lock because we reached the maximum # of
> retries: 5 retries. If this happens too often, then is recommended to
> increase the maximum number of retries on the
> hive.notification.sequence.lock.max.retries configuration :: Error executing
> SQL query "select "NEXT_EVENT_ID" from "NOTIFICATION_SEQUENCE" for
> update".){code}
> It seems, metastore operations are slow in this cluster and hence concurrent
> writes/DDL operations are failing to lock the row for update.
> Currently, the sleep interval between retries is specified via the config
> *hive.notification.sequence.lock.retry.sleep.interval*. The default value is
> 500 ms which seems to be too small. Can we set higher values for sleep
> interval and retries count,
> *hive.notification.sequence.lock.retry.sleep.interval=10s*
> *hive.notification.sequence.lock.max.retries=10*
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)