[
https://issues.apache.org/jira/browse/HIVE-7409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14063061#comment-14063061
]
Tsuyoshi OZAWA commented on HIVE-7409:
--------------------------------------
[~xuefuz], Thanks for your comment. The issue is fixed on
[JDK-7122142|https://bugs.openjdk.java.net/browse/JDK-7122142], but the issue
has potential deadlock problem, which is described on
[JDK-7031759|https://bugs.openjdk.java.net/browse/JDK-7031759], duplicated
ticket of [JDK-7122142|https://bugs.openjdk.java.net/browse/JDK-7122142] -
calling {{getAnnotations()}} from synchronized static method(e.g.
{{isStateful}}) can cause deadlock on JDK7 and JDK8. Therefore, IMHO, we should
fix it on Hive side.
> Add workaround for a deadlock issue of Class.getAnnotation()
> -------------------------------------------------------------
>
> Key: HIVE-7409
> URL: https://issues.apache.org/jira/browse/HIVE-7409
> Project: Hive
> Issue Type: Bug
> Reporter: Tsuyoshi OZAWA
> Attachments: HIVE-7409.1.patch
>
>
> [JDK-7122142|https://bugs.openjdk.java.net/browse/JDK-7122142] mentions that
> there is a race condition in getAnnotations. This problem can lead deadlock.
> The fix on JDK will be merged on jdk8, but hive supports jdk6/jdk7 currently.
> Therefore, we should add workaround to avoid the issue.
--
This message was sent by Atlassian JIRA
(v6.2#6252)