You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by mr...@apache.org on 2017/09/11 04:39:35 UTC
[65/94] [abbrv] ambari git commit: AMBARI-21891. Fix
AmbariServerTest.(vbrodetskyi)
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/f3232d20
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/f3232d20
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/f3232d20
Branch: refs/heads/branch-feature-AMBARI-14714
Commit: f3232d20436bf3944ae0b8359e71d840a6d132ac
Parents: 8de9b06
Author: Vitaly Brodetskyi <vb...@hortonworks.com>
Authored: Wed Sep 6 17:27:51 2017 +0300
Committer: Vitaly Brodetskyi <vb...@hortonworks.com>
Committed: Wed Sep 6 17:29:02 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/f3232d20/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 d52ea1f..6fef3b8 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
@@ -314,7 +314,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);