hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (Jira)" <j...@apache.org>
Subject [jira] [Work logged] (HIVE-25385) Prevent Hive Server 2 process failures when InterruptedException encountered (Part 1)
Date Tue, 27 Jul 2021 18:10:00 GMT

     [ https://issues.apache.org/jira/browse/HIVE-25385?focusedWorklogId=628652&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-628652
]

ASF GitHub Bot logged work on HIVE-25385:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 27/Jul/21 18:09
            Start Date: 27/Jul/21 18:09
    Worklog Time Spent: 10m 
      Work Description: mattmccline-microsoft commented on pull request #2532:
URL: https://github.com/apache/hive/pull/2532#issuecomment-887722739


   Not sure this is the right thing to do -- tabling for now.


-- 
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: gitbox-unsubscribe@hive.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 628652)
    Time Spent: 0.5h  (was: 20m)

> Prevent Hive Server 2 process failures when InterruptedException encountered (Part 1)
> -------------------------------------------------------------------------------------
>
>                 Key: HIVE-25385
>                 URL: https://issues.apache.org/jira/browse/HIVE-25385
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Matt McCline
>            Assignee: Matt McCline
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: hive-interrupted-part1-01-3_1.patch, hive-interrupted-part1-01-master.patch
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> To prevent Hive Server 2 process failure, wrap InterruptedException with another Exception
like MetaException, HiveSQLException, etc. Otherwise, InterruptedException rises to Thread.run
and kills the process.
> Example of problem stack trace:
> java.lang.reflect.UndeclaredThrowableExceptionjava.lang.reflect.UndeclaredThrowableException
at com.sun.proxy.$Proxy44.heartbeat(Unknown Source) at sun.reflect.GeneratedMethodAccessor127.invoke(Unknown
Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.hadoop.hive.metastore.HiveMetaStoreClient$SynchronizedHandler.invoke(HiveMetaStoreClient.java:2990)
at com.sun.proxy.$Proxy44.heartbeat(Unknown Source) at org.apache.hadoop.hive.ql.lockmgr.DbTxnManager.heartbeat(DbTxnManager.java:622)
at org.apache.hadoop.hive.ql.lockmgr.DbTxnManager$Heartbeater.lambda$run$0(DbTxnManager.java:999)
at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:422)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1730) at
org.apache.hadoop.hive.ql.lockmgr.DbTxnManager$Heartbeater.run(DbTxnManager.java:998) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)Caused by: java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method) at org.apache.hadoop.hive.metastore.RetryingMetaStoreClient.invoke(RetryingMetaStoreClient.java:259)
... 19 more



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message