Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 44DE7200CFD for ; Wed, 6 Sep 2017 15:51:45 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 439681609D9; Wed, 6 Sep 2017 13:51:45 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 87F141609D0 for ; Wed, 6 Sep 2017 15:51:44 +0200 (CEST) Received: (qmail 83335 invoked by uid 500); 6 Sep 2017 13:51:43 -0000 Mailing-List: contact commits-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@ambari.apache.org Delivered-To: mailing list commits@ambari.apache.org Received: (qmail 83326 invoked by uid 99); 6 Sep 2017 13:51:43 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Sep 2017 13:51:43 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 5759EF32D2; Wed, 6 Sep 2017 13:51:43 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: vbrodetskyi@apache.org To: commits@ambari.apache.org Message-Id: <2a1969f7cb0a447a993dc67deaba8549@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: ambari git commit: AMBARI-21891. Fix AmbariServerTest.(vbrodetskyi) Date: Wed, 6 Sep 2017 13:51:43 +0000 (UTC) archived-at: Wed, 06 Sep 2017 13:51:45 -0000 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 Authored: Wed Sep 6 16:03:53 2017 +0300 Committer: Vitaly Brodetskyi 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);