-
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-26662 User.createUserForTesting should not reset UserProvider.groups every time if hbase.group.service.for.test.only is true #4029
Conversation
…roups every time if hbase.group.service.for.test.only is true
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
Could you please describe your usage more? I do not fully understand wha's the problem here... |
Sure. As mentioned in the jira description, the "if" check below will always unnecessarily reset static var UserProvider.groups to a newly created instance of TestingGroups every time
That will cause all users but the latest one created in a test to be missed in the I bumped into this when running
TestAccessController used to pass before this change only because it implements its own |
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.
Was wondering why we have the second check but as you said, seems redundant as it will always be true when using TestingGroups.
+1
…roups every time if hbase.group.service.for.test.only is true (#4029) Signed-off-by: Josh Elser <elserj@apache.org> Signrd-off-by: Duo Zhang <zhangduo@apache.org>
…roups every time if hbase.group.service.for.test.only is true (#4029) Signed-off-by: Josh Elser <elserj@apache.org> Signrd-off-by: Duo Zhang <zhangduo@apache.org>
…roups every time if hbase.group.service.for.test.only is true (#4029) Signed-off-by: Josh Elser <elserj@apache.org> Signrd-off-by: Duo Zhang <zhangduo@apache.org>
…roups every time if hbase.group.service.for.test.only is true (apache#4029) Signed-off-by: Josh Elser <elserj@apache.org> Signrd-off-by: Duo Zhang <zhangduo@apache.org> (cherry picked from commit b38c88b) Change-Id: I1ac3620a8aefd0e833b90efb1356891b7c836dae
No description provided.