[ https://issues.apache.org/jira/browse/SENTRY-1790?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16031779#comment-16031779 ]
Alexander Kolbasov commented on SENTRY-1790: -------------------------------------------- Can you clarify why {{SentryOnFailureHookContextImpl}} may fail with java.lang.NoClassDefFoundError? The class is rather trivial and doesn't do much except assign a bunch of values to various fields. > NoClassDefFoundError: > org/apache/sentry/binding/hive/SentryOnFailureHookContextImpl > ----------------------------------------------------------------------------------- > > Key: SENTRY-1790 > URL: https://issues.apache.org/jira/browse/SENTRY-1790 > Project: Sentry > Issue Type: Bug > Components: Sentry > Affects Versions: sentry-ha-redesign > Reporter: Na Li > Assignee: Na Li > > Creating SentryOnFailureHookContextImpl may fail in > HiveAuthzBindingHookBase.executeOnFailureHooks and have > java.lang.NoClassDefFoundError. > When exception is thrown, hive is calling Sentry plugin to handle the > failure. Loading sentry class SentryOnFailureHookContextImpl may fail. > It is safer to load the class in normal context, so creating its instance > won't fail after exception is thrown. -- This message was sent by Atlassian JIRA (v6.3.15#6346)