-
Notifications
You must be signed in to change notification settings - Fork 9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
HADOOP-19445: ABFS: [FnsOverBlob][Tests] Add Tests For Negative Scenarios Identified for Rename Operation #7386
Merged
Merged
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
0bfe007
Rename Testcase for Blob endpoint
bhattmanish98 35b31f9
Test cases fixes for rename
bhattmanish98 6f5a3a3
Checkstyle fixes
bhattmanish98 47eccd5
Check on backslash on isKeyForDirectorySet method
bhattmanish98 152f9c2
Pulled latest trunk
bhattmanish98 7c71345
Code reformat
bhattmanish98 da81cc8
Changes as per comments given
bhattmanish98 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 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 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 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 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 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 |
---|---|---|
|
@@ -35,6 +35,7 @@ | |
import org.apache.hadoop.fs.azurebfs.AbfsConfiguration; | ||
import org.apache.hadoop.fs.azurebfs.contracts.exceptions.AbfsRestOperationException; | ||
import org.apache.hadoop.fs.azurebfs.contracts.exceptions.AzureBlobFileSystemException; | ||
import org.apache.hadoop.fs.azurebfs.contracts.exceptions.FileSystemOperationUnhandledException; | ||
import org.apache.hadoop.fs.azurebfs.contracts.exceptions.InvalidConfigurationValueException; | ||
import org.apache.hadoop.fs.azurebfs.contracts.services.BlobListResultSchema; | ||
import org.apache.hadoop.fs.azurebfs.contracts.services.ListResultEntrySchema; | ||
|
@@ -119,7 +120,14 @@ private boolean takeAction(List<Path> paths) | |
LOG.debug("Thread interrupted while taking action on path: {}", | ||
path.toUri().getPath()); | ||
} catch (ExecutionException e) { | ||
executionException = (AzureBlobFileSystemException) e.getCause(); | ||
LOG.debug("Execution exception while taking action on path: {}", | ||
path.toUri().getPath()); | ||
if (e.getCause() instanceof AzureBlobFileSystemException) { | ||
executionException = (AzureBlobFileSystemException) e.getCause(); | ||
} else { | ||
executionException = | ||
new FileSystemOperationUnhandledException(executionException); | ||
} | ||
} | ||
} | ||
if (executionException != null) { | ||
|
@@ -261,7 +269,7 @@ protected String listAndEnqueue(final ListBlobQueue listBlobQueue, | |
protected void addPaths(final List<Path> paths, | ||
final ListResultSchema retrievedSchema) { | ||
for (ListResultEntrySchema entry : retrievedSchema.paths()) { | ||
Path entryPath = new Path(ROOT_PATH, entry.name()); | ||
Path entryPath = new Path(ROOT_PATH + entry.name()); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why this change? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As discussed offline, this change is needed because of new Path() behavior in hadoop common. |
||
if (!entryPath.equals(this.path)) { | ||
paths.add(entryPath); | ||
} | ||
|
This file contains 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.
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.
The increase will not get implemented if getPathStatus call fails
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.
Moved it to finally block