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

krathbun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/main by this push:
     new 0eabc1fd89 fix non deterministic in testFileMetadataValidation and 
testBulkFileCheck (#5947)
0eabc1fd89 is described below

commit 0eabc1fd89e547ee6073311315b46ac7382f015f
Author: Ann (Huei) Chen <[email protected]>
AuthorDate: Thu Oct 9 17:49:44 2025 -0500

    fix non deterministic in testFileMetadataValidation and testBulkFileCheck 
(#5947)
---
 .../apache/accumulo/server/constraints/MetadataConstraintsTest.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/server/base/src/test/java/org/apache/accumulo/server/constraints/MetadataConstraintsTest.java
 
b/server/base/src/test/java/org/apache/accumulo/server/constraints/MetadataConstraintsTest.java
index 2ed44cbf4b..c9beb51c06 100644
--- 
a/server/base/src/test/java/org/apache/accumulo/server/constraints/MetadataConstraintsTest.java
+++ 
b/server/base/src/test/java/org/apache/accumulo/server/constraints/MetadataConstraintsTest.java
@@ -360,8 +360,9 @@ public class MetadataConstraintsTest {
     m = new Mutation(new Text("0;foo"));
     m.put(BulkFileColumnFamily.NAME,
         new Text(StoredTabletFile.of(new 
Path("hdfs://1.2.3.4/accumulo/tables/2a/t-0003/someFile"))
-            .getMetadata().replaceFirst("\"path\":\".*\",\"startRow", 
"\"path\":\"\",\"startRow")),
+            .getMetadata().replaceFirst("\"path\":\".*\"", "\"path\":\"\"")),
         new Value(fateId1.canonical()));
+
     assertViolation(mc, m, (short) 3100);
 
     // Bad Json - test startRow key replaced with empty string so validation 
should fail
@@ -435,8 +436,9 @@ public class MetadataConstraintsTest {
     m = new Mutation(new Text("0;foo"));
     m.put(columnFamily,
         new Text(StoredTabletFile.of(new 
Path("hdfs://1.2.3.4/accumulo/tables/2a/t-0003/someFile"))
-            .getMetadata().replaceFirst("\"path\":\".*\",\"startRow", 
"\"path\":\"\",\"startRow")),
+            .getMetadata().replaceFirst("\"path\":\".*\"", "\"path\":\"\"")),
         value);
+
     assertViolation(mc, m, (short) 3100);
 
     // Bad Json - test startRow key replaced with empty string so validation 
should fail

Reply via email to