Skip to content
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

Merged
merged 3 commits into from Jan 15, 2016

Conversation

dongche
Copy link
Contributor

@dongche dongche commented Jan 14, 2016

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?

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
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good. Thanks

@sundapeng
Copy link
Contributor

@apc999 @dongche The pr is targeted to branch master, do we need to create a new pr for branch authorization

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Tachyon-Pull-Request-Builder/7882/
Test PASSed.

@dongche
Copy link
Contributor Author

dongche commented Jan 15, 2016

@sundapeng thanks for your review. Updated the patch to move them to a private method.
About the pr target, we will merge master to branch authorization later, then this fix would be in that branch.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Tachyon-Pull-Request-Builder/7913/
Test FAILed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Tachyon-Pull-Request-Builder/7914/
Test PASSed.

@sundapeng
Copy link
Contributor

LGTM, thank @dongche .
@apc999 Do you have any comment?

Conflicts:
	integration-tests/src/test/java/tachyon/shell/TfsShellTest.java
@aaudiber
Copy link
Contributor

LGTM, thanks for the fix!

@apc999
Copy link
Contributor

apc999 commented Jan 15, 2016

+1 LGTM

apc999 added a commit that referenced this pull request Jan 15, 2016
[TACHYON-1534] Fix flaky tachyon.shell.TfsShellTest#lsTest
@apc999 apc999 merged commit c5eed4a into Alluxio:master Jan 15, 2016
@yuzhiweilai
Copy link
Contributor

Because of this,my test failed several times.Thanks for your fix.@sundapeng

@dongche dongche deleted the tachyon-1534 branch January 18, 2016 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants