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 F3FDD200AF2 for ; Wed, 4 May 2016 10:59:38 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id F131E1601A3; Wed, 4 May 2016 08:59:38 +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 483D3160A02 for ; Wed, 4 May 2016 10:59:38 +0200 (CEST) Received: (qmail 85431 invoked by uid 500); 4 May 2016 08:54:21 -0000 Mailing-List: contact issues-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list issues@ambari.apache.org Received: (qmail 84208 invoked by uid 99); 4 May 2016 08:53:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 May 2016 08:53:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id D50192C1F62 for ; Wed, 4 May 2016 08:53:12 +0000 (UTC) Date: Wed, 4 May 2016 08:53:12 +0000 (UTC) From: "Vitaly Brodetskyi (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-16094) Improvements to DB consistency check MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 04 May 2016 08:59:39 -0000 [ https://issues.apache.org/jira/browse/AMBARI-16094?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vitaly Brodetskyi updated AMBARI-16094: --------------------------------------- Attachment: (was: AMBARI-16094.patch) > Improvements to DB consistency check > ------------------------------------ > > Key: AMBARI-16094 > URL: https://issues.apache.org/jira/browse/AMBARI-16094 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.4.0 > Reporter: Vitaly Brodetskyi > Assignee: Vitaly Brodetskyi > Priority: Critical > Fix For: 2.4.0 > > > * disable (we can remove later) DatabaseCheck > * Have CheckDatabaseHelper be called as part of ambari-server start > ** Modify {{ambari-server start}} to so that it calls {{ambari-server che= ck-database}} > *ambari-server check-database improvements* > * On the output modify {{Ambari Server 'check-database' completed success= fully.}} to {{Ambari Server 'check-database' completed.}} - _remove success= fully_ > * Use =E2=80=9C--skip-database-check=E2=80=9D (not skip-database-validati= on) to force ambari-server to start despite error > * If there is error when check-database is run then use the following tex= t > {code} > DB configs consistency check failed. Run =E2=80=9Cambari-server start --s= kip-database-check=E2=80=9D to skip. If you use this =E2=80=9C--skip-databa= se-check=E2=80=9D option, do not make any changes to your cluster topology = or perform a cluster upgrade until you correct the database consistency iss= ues. See "/var/log/ambari-server/ambari-check-database.log" for more detail= s on the consistency issues. > {code} > *ambari-server start improvements* > * On Ambari Server start, the output failure text to should mention ambar= i-server.log (in addition to .out file it does today) > * If user has not specified {{--skip-database-check}} fail start command = if check-database reports error > * When user starts server with --skip-database-check, if there are DB che= ck errors, print message: > {code} > Ambari Server is starting with the database consistency check skipped. Do= not make any changes to your cluster topology or perform a cluster upgrade= until you correct the database consistency issues. See "/var/log/ambari-se= rver/ambari-check-database.log" for more details on the consistency issues. > {code} > When using log file paths, make sure to use the right path from log4j. > *Optional* > Modify ambari.properties to add {{database_check_error_skipped=3Dtrue}} i= f user started with {{--skip-database-check}} and there were errors due to = database-check. If there are no errors then store {{database_check_error_sk= ipped=3Dfalse}}. Eventually, UI will use this property and show warnings to= the user and even prevent HDP upgrade or other topology modifying operatio= ns such as Add Host/Service. -- This message was sent by Atlassian JIRA (v6.3.4#6332)