[
https://issues.apache.org/jira/browse/SENTRY-1751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16000891#comment-16000891
]
Hadoop QA commented on SENTRY-1751:
-----------------------------------
Here are the results of testing the latest attachment
https://issues.apache.org/jira/secure/attachment/12866904/SENTRY-1751.001-sentry-ha-redesign.patch
against sentry-ha-redesign.
{color:red}Overall:{color} -1 due to an error
{color:red}ERROR:{color} failed to apply patch (exit code 1):
The patch does not appear to apply with p0, p1, or p2
Console output:
https://builds.apache.org/job/PreCommit-SENTRY-Build/2655/console
This message is automatically generated.
> HMSFollower should not persist empty full snapshot
> --------------------------------------------------
>
> Key: SENTRY-1751
> URL: https://issues.apache.org/jira/browse/SENTRY-1751
> Project: Sentry
> Issue Type: Bug
> Components: Sentry
> Affects Versions: sentry-ha-redesign
> Reporter: Na Li
> Assignee: kalyan kumar kalvagadda
> Attachments: SENTRY-1751.001-sentry-ha-redesign.patch
>
>
> When HMSFollower gets empty full snapshot, it should not persist it in
> SentryStore.
> Right now, it persists the empty full snapshot, and causes default AuthzObj
> saved in SentryStore. When another empty full snapshot is persisted,
> exception occurs.
> 2017-05-03 09:58:42,209 (pool-5-thread-1) [ERROR -
> org.apache.sentry.service.thrift.HMSFollower.run(HMSFollower.java:304)]
> Caught unexpected exception in HMSFollower! Caused by: AuthzObj: default
> already exists
> org.apache.sentry.core.common.exception.SentryAlreadyExistsException:
> AuthzObj: default already exists
> at
> org.apache.sentry.provider.db.service.persistent.SentryStore.createAuthzPathsMappingCore(SentryStore.java:2541)
> at
> org.apache.sentry.provider.db.service.persistent.SentryStore.access$3000(SentryStore.java:101)
> at
> org.apache.sentry.provider.db.service.persistent.SentryStore$42.execute(SentryStore.java:2515)
> at
> org.apache.sentry.provider.db.service.persistent.TransactionManager.executeTransaction(TransactionManager.java:114)
> at
> org.apache.sentry.provider.db.service.persistent.TransactionManager.executeTransactionWithRetry(TransactionManager.java:181)
> at
> org.apache.sentry.provider.db.service.persistent.SentryStore.persistFullPathsImage(SentryStore.java:2511)
> at
> org.apache.sentry.service.thrift.HMSFollower.run(HMSFollower.java:269)
> 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:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)