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 501865020c Re-throw IOE in FileOperations.openFile instead of wrapping
(#6485)
501865020c is described below
commit 501865020c17ce4eae2429c9cea4d38c643ad5ac
Author: Dave Marion <[email protected]>
AuthorDate: Tue Jul 21 11:32:44 2026 -0400
Re-throw IOE in FileOperations.openFile instead of wrapping (#6485)
FileOperations.openFile was wrapping IOExceptions causing an issue
in BulkNewIT. This was introduced by #6484.
---
core/src/main/java/org/apache/accumulo/core/file/FileOperations.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/core/src/main/java/org/apache/accumulo/core/file/FileOperations.java
b/core/src/main/java/org/apache/accumulo/core/file/FileOperations.java
index e3d4d492cd..83026ed154 100644
--- a/core/src/main/java/org/apache/accumulo/core/file/FileOperations.java
+++ b/core/src/main/java/org/apache/accumulo/core/file/FileOperations.java
@@ -18,7 +18,6 @@
*/
package org.apache.accumulo.core.file;
-import static java.util.Objects.requireNonNull;
import static
org.apache.accumulo.core.file.blockfile.impl.CacheProvider.NULL_PROVIDER;
import java.io.IOException;
@@ -106,6 +105,9 @@ public abstract class FileOperations {
} catch (CancellationException e) {
throw new IOException("Cancelled while opening file: " + path, e);
} catch (ExecutionException e) {
+ if (e.getCause() instanceof IOException) {
+ throw (IOException) e.getCause();
+ }
throw new IOException("Error trying to open file: " + path, e);
}
}