[
https://issues.apache.org/jira/browse/HADOOP-19256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17889793#comment-17889793
]
ASF GitHub Bot commented on HADOOP-19256:
-----------------------------------------
diljotgrewal commented on code in PR #7011:
URL: https://github.com/apache/hadoop/pull/7011#discussion_r1801700603
##########
hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/impl/ITestS3APutIfMatch.java:
##########
@@ -85,7 +115,7 @@ public void testPutIfAbsentConflict() throws IOException {
Assert.assertEquals(RemoteFileChangedException.class, e.getClass());
S3Exception s3Exception = (S3Exception) e.getCause();
- Assert.assertEquals(s3Exception.statusCode(), 412);
+ Assertions.assertThat(s3Exception.statusCode()).isEqualTo(412);
Review Comment:
done.
> S3A: Support S3 Conditional Writes
> ----------------------------------
>
> Key: HADOOP-19256
> URL: https://issues.apache.org/jira/browse/HADOOP-19256
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: fs/s3
> Reporter: Ahmar Suhail
> Priority: Major
> Labels: pull-request-available
>
> S3 Conditional Write (Put-if-absent) capability is now generally available -
> [https://aws.amazon.com/about-aws/whats-new/2024/08/amazon-s3-conditional-writes/]
>
> S3A should allow passing in this put-if-absent header to prevent over writing
> of files.
> There is a feature branch for this: HADOOP-19256-s3-conditional-writes
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]