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
[TACHYON-1534] Fix flaky tachyon.shell.TfsShellTest#lsTest #2474
Conversation
MasterContext.getConf().set(Constants.SECURITY_GROUP_MAPPING, | ||
IdentityUserGroupsMapping.class.getName()); | ||
|
||
FileInfo[] files = new FileInfo[4]; | ||
String testUser = "test_user_lsr"; | ||
System.setProperty(Constants.SECURITY_LOGIN_USERNAME, testUser); | ||
// clear the loginUser and re-login with new user |
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.
Thank @dongche for the fix, a minor comment is we can move user login
to a private method.
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.
Sounds good. Thanks
Test PASSed. |
@sundapeng thanks for your review. Updated the patch to move them to a private method. |
Test FAILed. |
Test PASSed. |
Conflicts: integration-tests/src/test/java/tachyon/shell/TfsShellTest.java
LGTM, thanks for the fix! |
+1 LGTM |
[TACHYON-1534] Fix flaky tachyon.shell.TfsShellTest#lsTest
Because of this,my test failed several times.Thanks for your fix.@sundapeng |
JIRA: https://tachyon.atlassian.net/browse/TACHYON-1534
Fix flaky tachyon.shell.TfsShellTest#lsTest. The clean and re-login is not a atomic operation, so that the re-login user sometimes is not expected. This patch put them into a synchronized block.
@apc999 , @sundapeng , would you like to take a look at this?