-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HADOOP-17765. ABFS: Use Unique File Paths in Tests #3153
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
43642d0
part 1: test sub-packages
sumangala17 e85de23
part 2a: upto create test
sumangala17 c501cd7
part 2b: upto rn unicode
sumangala17 0ad689e
complete
sumangala17 9c382c2
merge
sumangala17 b9977b3
chkstyle
sumangala17 481daba
Merge branch 'trunk' into HADOOP-17765-new
sumangala17 95b5e85
use path() with unique filename
sumangala17 d02c0cd
assert
sumangala17 2e49cf5
Merge branch 'trunk' into HADOOP-17765-new
sumangala17 8322a19
checkstyle
sumangala17 f306f88
fix test failures
sumangala17 875e43e
Merge branch 'trunk' into HADOOP-17765-new
sumangala17 98882a0
close streams
sumangala17 9004aeb
test fix
sumangala17 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,6 +25,8 @@ | |
| import java.util.UUID; | ||
| import java.util.concurrent.Callable; | ||
|
|
||
| import org.apache.commons.lang3.StringUtils; | ||
|
|
||
| import org.junit.After; | ||
| import org.junit.Assert; | ||
| import org.junit.Before; | ||
|
|
@@ -81,6 +83,7 @@ public abstract class AbstractAbfsIntegrationTest extends | |
| private AuthType authType; | ||
| private boolean useConfiguredFileSystem = false; | ||
| private boolean usingFilesystemForSASTests = false; | ||
| private static final int SHORTENED_GUID_LEN = 12; | ||
|
|
||
| protected AbstractAbfsIntegrationTest() throws Exception { | ||
| fileSystemName = TEST_CONTAINER_PREFIX + UUID.randomUUID().toString(); | ||
|
|
@@ -414,6 +417,16 @@ protected Path path(String filepath) throws IOException { | |
| new Path(getTestPath(), filepath)); | ||
| } | ||
|
|
||
| /** | ||
| * Generate a unique path using the given filepath | ||
|
||
| * @param filepath path string | ||
| * @return unique path created from filepath and a GUID | ||
| */ | ||
| protected Path getUniquePath(String filepath) { | ||
| return new Path(filepath + StringUtils | ||
| .right(UUID.randomUUID().toString(), SHORTENED_GUID_LEN)); | ||
| } | ||
|
|
||
| /** | ||
| * Get any Delegation Token manager created by the filesystem. | ||
| * @return the DT manager or null. | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.