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

dlmarion 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 5174be131a Use URI when creating Path in TabletFile (#3549)
5174be131a is described below

commit 5174be131aa3818c5fe7c7f310fd1130ffef08dc
Author: dtspence <[email protected]>
AuthorDate: Fri Jun 30 07:59:09 2023 -0400

    Use URI when creating Path in TabletFile (#3549)
    
    Creates TabletFile path with URI, which avoids a regex validation.
    
    Fixes #3499
    
    
    ---------
    
    Co-authored-by: dtspence <[email protected]>
    Co-authored-by: Christopher Tubbs <[email protected]>
---
 .../main/java/org/apache/accumulo/core/metadata/StoredTabletFile.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/core/src/main/java/org/apache/accumulo/core/metadata/StoredTabletFile.java 
b/core/src/main/java/org/apache/accumulo/core/metadata/StoredTabletFile.java
index 2c85a386d6..24da3132ba 100644
--- a/core/src/main/java/org/apache/accumulo/core/metadata/StoredTabletFile.java
+++ b/core/src/main/java/org/apache/accumulo/core/metadata/StoredTabletFile.java
@@ -18,6 +18,8 @@
  */
 package org.apache.accumulo.core.metadata;
 
+import java.net.URI;
+
 import org.apache.hadoop.fs.Path;
 import org.apache.hadoop.io.Text;
 
@@ -40,7 +42,7 @@ public class StoredTabletFile extends TabletFile {
    * the entry can be deleted.
    */
   public StoredTabletFile(String metadataEntry) {
-    super(new Path(metadataEntry));
+    super(new Path(URI.create(metadataEntry)));
     this.metadataEntry = metadataEntry;
   }
 

Reply via email to