Repository: atlas
Updated Branches:
  refs/heads/master 40329046a -> b96c6b7a9


ATLAS-2969: Attempt to import empty zip file should not throw excpetion

(cherry picked from commit 4ca33fcbf4e8845c86340622fb28d88e4457dccd)


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

Branch: refs/heads/master
Commit: b96c6b7a9127021c5e3624048bc0d21b0e1e24e3
Parents: 4032904
Author: Sarath Subramanian <ssubraman...@hortonworks.com>
Authored: Thu Nov 15 23:07:33 2018 -0800
Committer: Sarath Subramanian <ssubraman...@hortonworks.com>
Committed: Thu Nov 15 23:35:27 2018 -0800

----------------------------------------------------------------------
 .../main/java/org/apache/atlas/web/resources/AdminResource.java  | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/atlas/blob/b96c6b7a/webapp/src/main/java/org/apache/atlas/web/resources/AdminResource.java
----------------------------------------------------------------------
diff --git 
a/webapp/src/main/java/org/apache/atlas/web/resources/AdminResource.java 
b/webapp/src/main/java/org/apache/atlas/web/resources/AdminResource.java
index 3998932..83dac65 100755
--- a/webapp/src/main/java/org/apache/atlas/web/resources/AdminResource.java
+++ b/webapp/src/main/java/org/apache/atlas/web/resources/AdminResource.java
@@ -410,10 +410,8 @@ public class AdminResource {
                 LOG.info(excp.getMessage());
             } else {
                 LOG.error("importData(binary) failed", excp);
+                throw excp;
             }
-
-            throw excp;
-
         } catch (Exception excp) {
             LOG.error("importData(binary) failed", excp);
 

Reply via email to