[
https://issues.apache.org/jira/browse/HBASE-24114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17074988#comment-17074988
]
Huaxiang Sun commented on HBASE-24114:
--------------------------------------
Debugged a bit, found this is a race condition,
There is a gap between snapshot finished and hdfs acl setup, scanSnapshot kicks
in between and gets permission error. Will try to put up a patch for it.
> [Flakey Tests] TestSnapshotScannerHDFSAclController
> ---------------------------------------------------
>
> Key: HBASE-24114
> URL: https://issues.apache.org/jira/browse/HBASE-24114
> Project: HBase
> Issue Type: Test
> Components: acl
> Affects Versions: 2.3.0, master, 2.4.0
> Reporter: Huaxiang Sun
> Priority: Major
>
> Still see the following error from the test.
> {code:java}
> -------------------------------------------------------------------------------
> Test set:
> org.apache.hadoop.hbase.security.access.TestSnapshotScannerHDFSAclController
> -------------------------------------------------------------------------------
> Tests run: 23, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 342.32 s <<<
> FAILURE! - in
> org.apache.hadoop.hbase.security.access.TestSnapshotScannerHDFSAclController
> org.apache.hadoop.hbase.security.access.TestSnapshotScannerHDFSAclController.testGrantTable
> Time elapsed: 6.82 s <<< FAILURE!
> java.lang.AssertionError: expected:<6> but was:<-1>
> at
> org.apache.hadoop.hbase.security.access.TestSnapshotScannerHDFSAclController.testGrantTable(TestSnapshotScannerHDFSAclController.java:349)
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)