Rename Resume optimization: resume only if srcDir etag matches to the one with which rename was started.#85
Conversation
…we are not making redundant listStatus backend call
| @@ -931,12 +931,28 @@ public FileStatus[] listStatus(final Path f) throws IOException { | |||
| == PrefixMode.BLOB) { | |||
There was a problem hiding this comment.
Resume actions to be made only if incoming path is a parent to one of the configured atomic rename paths to stop parsing of all the List calls.
| @@ -931,12 +931,28 @@ public FileStatus[] listStatus(final Path f) throws IOException { | |||
| == PrefixMode.BLOB) { | |||
| FileStatus renamePendingFileStatus | |||
| = getAbfsStore().getRenamePendingFileStatus(result); | |||
There was a problem hiding this comment.
Rename variable to renamePendingJSONStatus
| @@ -1083,15 +1099,20 @@ private FileStatus getFileStatus(final Path path, | |||
| && getAbfsStore().isAtomicRenameKey(fileStatus.getPath().toUri().getPath()) | |||
There was a problem hiding this comment.
Same as prev comment, resume only if this qualifies as parent of atomic rename path.
There was a problem hiding this comment.
Current code already has the check.
|
:::: AGGREGATED TEST RESULT :::: HNS-OAuth[INFO] Results: HNS-SharedKey[INFO] Results: NonHNS-SharedKey[INFO] Results: NonHNS-OAuth[INFO] Results: AppendBlob-HNS-OAuth[INFO] Results: |
… via OpenFileParameters (apache#2975) commit: dcddc6a
…he cases of rename resume
|
:::: AGGREGATED TEST RESULT :::: HNS-OAuth[INFO] Results: HNS-SharedKey[INFO] Results: NonHNS-SharedKey[INFO] Results: NonHNS-OAuth[INFO] Results: AppendBlob-HNS-OAuth[INFO] Results: Time taken: 48 mins 6 secs. |
|
Thanks @snvijaya for the approval. The new changes include:
|
| fileSystemId, FSOperationType.LISTSTATUS, true, tracingHeaderFormat, | ||
| listener); | ||
| FileStatus[] result = getAbfsStore().listStatus(qualifiedPath, tracingContext); | ||
| FileStatus[] result = getAbfsStore().listStatus(qualifiedPath, |
There was a problem hiding this comment.
Used multiple times, can be stored into a variable
….getPath; qualifiedPath has correct path with the workingDir.
:::: AGGREGATED TEST RESULT ::::
HNS-OAuth
[INFO] Results:
[INFO]
[WARNING] Tests run: 140, Failures: 0, Errors: 0, Skipped: 4
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR] ITestAzureBlobFileSystemLease.testAcquireRetry:383 » TestTimedOut test timed o...
[INFO]
[ERROR] Tests run: 782, Failures: 0, Errors: 1, Skipped: 189
[INFO] Results:
[INFO]
[WARNING] Tests run: 279, Failures: 0, Errors: 0, Skipped: 45
HNS-SharedKey
[INFO] Results:
[INFO]
[WARNING] Tests run: 140, Failures: 0, Errors: 0, Skipped: 4
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR] ITestAzureBlobFileSystemLease.testAcquireRetry:383 » TestTimedOut test timed o...
[INFO]
[ERROR] Tests run: 782, Failures: 0, Errors: 1, Skipped: 189
[INFO] Results:
[INFO]
[WARNING] Tests run: 279, Failures: 0, Errors: 0, Skipped: 45
NonHNS-SharedKey
[INFO] Results:
[INFO]
[WARNING] Tests run: 140, Failures: 0, Errors: 0, Skipped: 4
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] ITestAzureBlobFileSystemRandomRead.testValidateSeekBounds:276->Assert.assertTrue:42->Assert.fail:89 There should not be any network I/O (elapsedTimeMs=155).
[INFO]
[ERROR] Tests run: 782, Failures: 1, Errors: 0, Skipped: 280
[INFO] Results:
[INFO]
[WARNING] Tests run: 279, Failures: 0, Errors: 0, Skipped: 45
NonHNS-OAuth
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] TestAbfsClientThrottlingAnalyzer.testManySuccessAndErrorsAndWaiting:181->fuzzyValidate:64 The actual value 10 is not within the expected range: [5.60, 8.40].
[INFO]
[ERROR] Tests run: 140, Failures: 1, Errors: 0, Skipped: 4
[INFO] Results:
[INFO]
[WARNING] Tests run: 782, Failures: 0, Errors: 0, Skipped: 280
[INFO] Results:
[INFO]
[WARNING] Tests run: 279, Failures: 0, Errors: 0, Skipped: 45
AppendBlob-HNS-OAuth
[INFO] Results:
[INFO]
[WARNING] Tests run: 140, Failures: 0, Errors: 0, Skipped: 4
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR] ITestAzureBlobFileSystemLease.testAcquireRetry:383 » TestTimedOut test timed o...
[INFO]
[ERROR] Tests run: 782, Failures: 0, Errors: 1, Skipped: 189
[INFO] Results:
[INFO]
[WARNING] Tests run: 279, Failures: 0, Errors: 0, Skipped: 45
Time taken: 47 mins 6 secs.