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_r275271713
 
 

 ##########
 File path: 
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/TestInvoker.java
 ##########
 @@ -145,6 +146,14 @@ private void resetCounters() {
     retryCount = 0;
   }
 
+  @Test
+  public void test412isPreconditions() throws Exception {
+    RemoteFileChangedException ex = verifyTranslated(
+        412, RemoteFileChangedException.class);
+    assertExceptionContains(
+        RemoteFileChangedException.PRECONDITIONS_NOT_MET, ex);
+  }
+
   @Test
   public void test503isThrottled() throws Exception {
     verifyTranslated(503, AWSServiceThrottledException.class);
 
 Review comment:
   `public static final int SERVICE_UNAVAILABLE = 503;`

----------------------------------------------------------------
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]

Reply via email to