This is an automated email from the ASF dual-hosted git repository.

ahmar pushed a commit to branch branch-3.4
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/branch-3.4 by this push:
     new e9749e981bd HADOOP-19627. S3A: fixes 
testIfMatchOverwriteWithOutdatedEtag() failure when not using SSE-KMS (#7839) 
(#7839)
e9749e981bd is described below

commit e9749e981bd6b31bc5f466e6523167408f9e972c
Author: ahmarsuhail <ahma...@amazon.co.uk>
AuthorDate: Wed Jul 30 11:06:26 2025 +0100

    HADOOP-19627. S3A: fixes testIfMatchOverwriteWithOutdatedEtag() failure 
when not using SSE-KMS (#7839) (#7839)
    
    Contributed by: Ahmar Suhail
---
 .../apache/hadoop/fs/s3a/impl/ITestS3APutIfMatchAndIfNoneMatch.java  | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/impl/ITestS3APutIfMatchAndIfNoneMatch.java
 
b/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/impl/ITestS3APutIfMatchAndIfNoneMatch.java
index 7939b39935b..bf915ed4f11 100644
--- 
a/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/impl/ITestS3APutIfMatchAndIfNoneMatch.java
+++ 
b/hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/impl/ITestS3APutIfMatchAndIfNoneMatch.java
@@ -469,8 +469,11 @@ public void testIfMatchOverwriteWithOutdatedEtag() throws 
Throwable {
             .as("ETag should not be null after file creation")
             .isNotNull();
 
+    String updatedFileContent = "Updated content";
+    byte[] updatedData = updatedFileContent.getBytes(StandardCharsets.UTF_8);
+
     // Overwrite the file. Will update the etag, making the previously fetched 
etag outdated.
-    createFileWithFlags(fs, path, SMALL_FILE_BYTES, false, null);
+    createFileWithFlags(fs, path, updatedData, false, null);
 
     // overwrite file with outdated etag. Should throw 
RemoteFileChangedException
     RemoteFileChangedException exception = 
intercept(RemoteFileChangedException.class,


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-commits-h...@hadoop.apache.org

Reply via email to