-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HBASE-24114 [Flakey Tests] TestSnapshotScannerHDFSAclController #1433
Conversation
Hi @mymeiyi, this is a race condition which causes the error as described in the jira. The case is like this: I added the code to sleep for one second after snapshot, which is not ideal. Is there a way to check HDFS acl is setup after snapshot? That will be an ideal solution. Thanks. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Lets try it.
I actually just pushed this on branch-2 since I'm studying it... lets see if helps.
throws Exception{ | ||
admin.snapshot(snapShotName, tableName); | ||
LOG.info("Sleep for one second, waiting for HDFS Acl setup"); | ||
Threads.sleep(1000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Up this to 3 seconds? Yeah, this ugly (smile).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated it to be 3 seconds, will wait for the test result and commit. The branch-2 results with patch looks good so far.
Oh, I pushed w/ 3 second wait instead of 1 second. |
Thanks @saintstack , 3 seconds is good. Will wait for @mymeiyi 's comments to see if there is a better way to avoid this sleep and then merge to the master. |
5bdf3ca
to
92e8cb4
Compare
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
…he#1433) Signed-off-by: stack <stack@apache.org>
… (#1459) Signed-off-by: stack <stack@apache.org>
…he#1433) Signed-off-by: stack <stack@apache.org>
…he#1433) Signed-off-by: stack <stack@apache.org>
…he#1433) Signed-off-by: stack <stack@apache.org>
There is a gap between snapshot finished and hdfs acl setup, scanSnapshot kicks in between and gets permission error.