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

abhishekrb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git


The following commit(s) were added to refs/heads/master by this push:
     new 53797b9e49e Fixed a flaky test in 
`S3DataSegmentPusherConfigTest#testSerialization` by changing string to 
key:value pair (#15207)
53797b9e49e is described below

commit 53797b9e49ea9126d31e0c700f3b7adeaacfb6e7
Author: Krishna Anandan <[email protected]>
AuthorDate: Wed Nov 15 11:05:55 2023 -0600

    Fixed a flaky test in `S3DataSegmentPusherConfigTest#testSerialization` by 
changing string to key:value pair (#15207)
    
    * Fix capacity response in mm-less ingestion (#14888)
    
    Changes:
    - Fix capacity response in mm-less ingestion.
    - Add field usedClusterCapacity to the GET /totalWorkerCapacity response.
    This API should be used to get the total ingestion capacity on the overlord.
    - Remove method `isK8sTaskRunner` from interface `TaskRunner`
    
    * Using Map to perform comparison
    
    * Minor Change
    
    ---------
    
    Co-authored-by: George Shiqi Wu <[email protected]>
---
 .../org/apache/druid/storage/s3/S3DataSegmentPusherConfigTest.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/extensions-core/s3-extensions/src/test/java/org/apache/druid/storage/s3/S3DataSegmentPusherConfigTest.java
 
b/extensions-core/s3-extensions/src/test/java/org/apache/druid/storage/s3/S3DataSegmentPusherConfigTest.java
index bf5f07efb93..baa71fac068 100644
--- 
a/extensions-core/s3-extensions/src/test/java/org/apache/druid/storage/s3/S3DataSegmentPusherConfigTest.java
+++ 
b/extensions-core/s3-extensions/src/test/java/org/apache/druid/storage/s3/S3DataSegmentPusherConfigTest.java
@@ -43,7 +43,9 @@ public class S3DataSegmentPusherConfigTest
                         + 
"\"disableAcl\":false,\"maxListingLength\":2000,\"useS3aSchema\":false}";
 
     S3DataSegmentPusherConfig config = JSON_MAPPER.readValue(jsonConfig, 
S3DataSegmentPusherConfig.class);
-    Assert.assertEquals(jsonConfig, JSON_MAPPER.writeValueAsString(config));
+    Map<String, String> expected = JSON_MAPPER.readValue(jsonConfig, 
Map.class);
+    Map<String, String> actual = 
JSON_MAPPER.readValue(JSON_MAPPER.writeValueAsString(config), Map.class);
+    Assert.assertEquals(expected, actual);
   }
 
   @Test


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to