ehiggs commented on a change in pull request #606: HADOOP-16190. S3A copyFile
operation to include source versionID or etag in the copy request
URL: https://github.com/apache/hadoop/pull/606#discussion_r275274553
##########
File path:
hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/S3AUtils.java
##########
@@ -257,6 +257,14 @@ public static IOException translateException(@Nullable
String operation,
ioe = new AWSBadRequestException(message, s3Exception);
break;
+ // version/etag id cannot be met in copy.
+ case 412:
+ ioe = new RemoteFileChangedException(path,
+ operation,
+ RemoteFileChangedException.PRECONDITIONS_NOT_MET,
+ ase);
+ break;
+
// out of range. This may happen if an object is overwritten with
// a shorter one while it is being read.
case 416:
Review comment:
(argh, hitting cmd-enter turns this into a review and not a comment like it
used to)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]