This is an automated email from the ASF dual-hosted git repository.
aplex pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/gobblin.git
The following commit(s) were added to refs/heads/master by this push:
new 24cecdd [GOBBLIN-1517] Improve error message during recursive
renaming (#3366)
24cecdd is described below
commit 24cecdd584c503e997292629c750de8bc575c529
Author: Jack Moseley <[email protected]>
AuthorDate: Tue Aug 17 15:48:56 2021 -0700
[GOBBLIN-1517] Improve error message during recursive renaming (#3366)
Currently if an error is thrown during recursive renaming, the error
message does not contain the from and to path so it's hard to tell exactly
which rename of the recursive rename failed. Usually the hadoop IOException
contains these paths, but in some cases they do not, so it's better make sure
it is printed.
---
gobblin-utility/src/main/java/org/apache/gobblin/util/HadoopUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/gobblin-utility/src/main/java/org/apache/gobblin/util/HadoopUtils.java
b/gobblin-utility/src/main/java/org/apache/gobblin/util/HadoopUtils.java
index f077c04..ee34292 100644
--- a/gobblin-utility/src/main/java/org/apache/gobblin/util/HadoopUtils.java
+++ b/gobblin-utility/src/main/java/org/apache/gobblin/util/HadoopUtils.java
@@ -629,7 +629,7 @@ public class HadoopUtils {
}
} catch (IOException ioe) {
- throw new RuntimeException(ioe);
+ throw new RuntimeException("Failed to rename " + this.from.getPath() +
" to " + this.to, ioe);
}
}
}