[ https://issues.apache.org/jira/browse/HIVE-25385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matt McCline updated HIVE-25385: -------------------------------- Attachment: hive-interrupted-part1-01-master.patch > Prevent Hive Server 2 process failures when InterruptedException encountered > ---------------------------------------------------------------------------- > > 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 > Attachments: hive-interrupted-part1-01-3_1.patch, > hive-interrupted-part1-01-master.patch > > > 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)