[ 
https://issues.apache.org/jira/browse/HIVE-19380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16462021#comment-16462021
 ] 

Alexander Kolbasov commented on HIVE-19380:
-------------------------------------------

The stack trace is rather useful - it shows why exactly the log was obtained. I 
agree with adding more information but I am not sure that removing the stack 
trace here will make things better. Are there lots of these errors usually? Do 
they normally show the same stack trace or different traces?

> Hive Lock Error Message Too Verbose
> -----------------------------------
>
>                 Key: HIVE-19380
>                 URL: https://issues.apache.org/jira/browse/HIVE-19380
>             Project: Hive
>          Issue Type: Improvement
>          Components: HiveServer2, Locking
>    Affects Versions: 3.0.0, 2.4.0
>            Reporter: BELUGA BEHR
>            Priority: Minor
>
> When a query fails to gain a lock to a table, the following error message 
> appears in beeline.  The error message does not need a stack trace and it 
> would be helpful to know how long it waiting before it gave up.  It should 
> also state exactly which lock it was unable to obtain.
> {code:java}
> ERROR : FAILED: Error in acquiring locks: Locks on the underlying objects 
> cannot be acquired. retry after some time
> org.apache.hadoop.hive.ql.lockmgr.LockException: Locks on the underlying 
> objects cannot be acquired. retry after some time
>         at 
> org.apache.hadoop.hive.ql.lockmgr.DummyTxnManager.acquireLocks(DummyTxnManager.java:171)
>         at 
> org.apache.hadoop.hive.ql.Driver.acquireLocksAndOpenTxn(Driver.java:1205)
>         at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1489)
>         at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1285)
>         at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1280)
>         at 
> org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:236)
>         at 
> org.apache.hive.service.cli.operation.SQLOperation.access$300(SQLOperation.java:89)
>         at 
> org.apache.hive.service.cli.operation.SQLOperation$3$1.run(SQLOperation.java:301)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at javax.security.auth.Subject.doAs(Subject.java:415)
>         at 
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1920)
>         at 
> org.apache.hive.service.cli.operation.SQLOperation$3.run(SQLOperation.java:314)
>         at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:745)
>  {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to