ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From niti...@apache.org
Subject ambari git commit: AMBARI-17941 : changed error message to debug as these errors can be ignored while upgrade (nitirajrathore)
Date Fri, 29 Jul 2016 07:04:36 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.4 282fa4dc7 -> fefb156ac


AMBARI-17941 : changed error message to debug as these errors can be ignored while upgrade
(nitirajrathore)


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

Branch: refs/heads/branch-2.4
Commit: fefb156ac26ec8e6897154a7294f5c7880d25d75
Parents: 282fa4d
Author: Nitiraj Rathore <nitiraj.rathore@gmail.com>
Authored: Fri Jul 29 12:32:01 2016 +0530
Committer: Nitiraj Rathore <nitiraj.rathore@gmail.com>
Committed: Fri Jul 29 12:34:05 2016 +0530

----------------------------------------------------------------------
 .../java/org/apache/ambari/server/upgrade/UpgradeCatalog240.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/fefb156a/ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog240.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog240.java
b/ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog240.java
index 84b8817..4590ba6 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog240.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog240.java
@@ -524,7 +524,8 @@ public class UpgradeCatalog240 extends AbstractUpgradeCatalog {
         LOG.info("executing insert resulted in {} row changes.", rowsChanged);
       } catch (Exception e) { // when the entity table is not yet created or other exception.
         entityManager.getTransaction().rollback();
-        LOG.error("Error --> can be ignored.", e);
+        LOG.info("Error (can be ignored) {}", e.getMessage());
+        LOG.debug("Exception occured while updating : {}",viewEntity.getViewName() + viewEntity.getViewInstance(),
e);
       }
     }
   }


Mime
View raw message