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

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


The following commit(s) were added to refs/heads/2.1 by this push:
     new dfbefd076b Update ScanServerRefTabletFile to create Path with a URI 
(#3558)
dfbefd076b is described below

commit dfbefd076bd531b82f3dff0beee4af02fe2a671a
Author: Christopher L. Shannon <[email protected]>
AuthorDate: Fri Jun 30 09:04:06 2023 -0400

    Update ScanServerRefTabletFile to create Path with a URI (#3558)
    
    This optimizes the Path creation and prevents a regex validation.
    
    This closes #3557
---
 .../org/apache/accumulo/core/metadata/ScanServerRefTabletFile.java   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 
a/core/src/main/java/org/apache/accumulo/core/metadata/ScanServerRefTabletFile.java
 
b/core/src/main/java/org/apache/accumulo/core/metadata/ScanServerRefTabletFile.java
index 8102c6f243..ad169ca396 100644
--- 
a/core/src/main/java/org/apache/accumulo/core/metadata/ScanServerRefTabletFile.java
+++ 
b/core/src/main/java/org/apache/accumulo/core/metadata/ScanServerRefTabletFile.java
@@ -18,6 +18,7 @@
  */
 package org.apache.accumulo.core.metadata;
 
+import java.net.URI;
 import java.util.Objects;
 import java.util.UUID;
 
@@ -32,13 +33,13 @@ public class ScanServerRefTabletFile extends TabletFile {
   private final Text colq;
 
   public ScanServerRefTabletFile(String file, String serverAddress, UUID 
serverLockUUID) {
-    super(new Path(file));
+    super(new Path(URI.create(file)));
     this.colf = new Text(serverAddress);
     this.colq = new Text(serverLockUUID.toString());
   }
 
   public ScanServerRefTabletFile(String file, Text colf, Text colq) {
-    super(new Path(file));
+    super(new Path(URI.create(file)));
     this.colf = colf;
     this.colq = colq;
   }

Reply via email to