sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jar...@apache.org
Subject git commit: SQOOP-1365: Do not print stack trace when we can't move generated .java file to CWD
Date Sun, 13 Jul 2014 17:34:29 GMT
Repository: sqoop
Updated Branches:
  refs/heads/trunk e2d6499da -> 1bc8b6bfd


SQOOP-1365: Do not print stack trace when we can't move generated .java file to CWD

(Sai Karthik Ganguru via Jarek Jarcec Cecho)


Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/1bc8b6bf
Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/1bc8b6bf
Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/1bc8b6bf

Branch: refs/heads/trunk
Commit: 1bc8b6bfda95f0a6c5cecdf1d2b874e4e22c23ee
Parents: e2d6499
Author: Jarek Jarcec Cecho <jarcec@apache.org>
Authored: Sun Jul 13 10:33:27 2014 -0700
Committer: Jarek Jarcec Cecho <jarcec@apache.org>
Committed: Sun Jul 13 10:33:27 2014 -0700

----------------------------------------------------------------------
 src/java/org/apache/sqoop/orm/CompilationManager.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/1bc8b6bf/src/java/org/apache/sqoop/orm/CompilationManager.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/sqoop/orm/CompilationManager.java b/src/java/org/apache/sqoop/orm/CompilationManager.java
index d56ed60..ce165e8 100644
--- a/src/java/org/apache/sqoop/orm/CompilationManager.java
+++ b/src/java/org/apache/sqoop/orm/CompilationManager.java
@@ -238,7 +238,11 @@ public class CompilationManager {
       try {
           FileUtils.moveFile(fOrig, fDest);
       } catch (IOException e) {
-          LOG.debug("Could not rename " + orig + " to " + dest, e);
+    	  /*Removed the exception being thrown
+    	   *even if the .java file can not be renamed
+    	   *or can not be moved a "dest" directory for
+    	   *any reason.*/
+          LOG.debug("Could not rename " + orig + " to " + dest); 
       }
     }
   }


Mime
View raw message