[ https://issues.apache.org/jira/browse/SENTRY-1751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16001100#comment-16001100 ]
Hadoop QA commented on SENTRY-1751: ----------------------------------- Here are the results of testing the latest attachment https://issues.apache.org/jira/secure/attachment/12866907/SENTRY-1751.002-sentry-ha-redesign.patch against sentry-ha-redesign. {color:red}Overall:{color} -1 due to 2 errors {color:red}ERROR:{color} mvn test exited 1 {color:red}ERROR:{color} Failed: org.apache.sentry.tests.e2e.hdfs.TestHDFSIntegrationAdvanced Console output: https://builds.apache.org/job/PreCommit-SENTRY-Build/2656/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, > SENTRY-1751.002-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)