Repository: ambari
Updated Branches:
  refs/heads/branch-2.6 a86e16185 -> 345031f52


AMBARI-21891. Fix AmbariServerTest.(vbrodetskyi)


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

Branch: refs/heads/branch-2.6
Commit: 345031f526c7bf675866856683863ec368d69d1c
Parents: a86e161
Author: Vitaly Brodetskyi <vbrodets...@hortonworks.com>
Authored: Wed Sep 6 16:03:53 2017 +0300
Committer: Vitaly Brodetskyi <vbrodets...@hortonworks.com>
Committed: Wed Sep 6 16:03:53 2017 +0300

----------------------------------------------------------------------
 .../ambari/server/checks/DatabaseConsistencyCheckHelper.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/345031f5/ambari-server/src/main/java/org/apache/ambari/server/checks/DatabaseConsistencyCheckHelper.java
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/java/org/apache/ambari/server/checks/DatabaseConsistencyCheckHelper.java
 
b/ambari-server/src/main/java/org/apache/ambari/server/checks/DatabaseConsistencyCheckHelper.java
index f5a7203..97da8b1 100644
--- 
a/ambari-server/src/main/java/org/apache/ambari/server/checks/DatabaseConsistencyCheckHelper.java
+++ 
b/ambari-server/src/main/java/org/apache/ambari/server/checks/DatabaseConsistencyCheckHelper.java
@@ -326,7 +326,7 @@ public class DatabaseConsistencyCheckHelper {
           } else if (tableRowCount != -1 && tableRowCount < 
TABLE_ROW_COUNT_LIMIT) {
             LOG.info(String.format("The database table %s currently has %d 
rows and is within normal limits (%d)", tableName, tableRowCount, 
TABLE_ROW_COUNT_LIMIT));
           } else {
-            throw new SQLException();
+            warning("Unable to get size for table {}!", tableName);
           }
         } catch (SQLException ex) {
           error(String.format("Failed to get %s row count: ", tableName), e);

Reply via email to