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 E1744200B8F for ; Fri, 30 Sep 2016 14:43:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E01C8160AC4; Fri, 30 Sep 2016 12:43:22 +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 2AEAA160AD9 for ; Fri, 30 Sep 2016 14:43:22 +0200 (CEST) Received: (qmail 38773 invoked by uid 500); 30 Sep 2016 12:43: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 38750 invoked by uid 99); 30 Sep 2016 12:43:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2016 12:43:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 325702C0B05 for ; Fri, 30 Sep 2016 12:43:21 +0000 (UTC) Date: Fri, 30 Sep 2016 12:43:21 +0000 (UTC) From: "Dmytro Sen (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-18492) Clusters With Many Hosts Can Create Alerts With Text Too Large To Be Stored MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 30 Sep 2016 12:43:23 -0000 [ https://issues.apache.org/jira/browse/AMBARI-18492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dmytro Sen updated AMBARI-18492: -------------------------------- Fix Version/s: (was: 2.5.0) 2.4.2 > Clusters With Many Hosts Can Create Alerts With Text Too Large To Be Stored > --------------------------------------------------------------------------- > > Key: AMBARI-18492 > URL: https://issues.apache.org/jira/browse/AMBARI-18492 > Project: Ambari > Issue Type: Bug > Components: alerts > Affects Versions: 2.2.2 > Reporter: Dmytro Sen > Assignee: Dmytro Sen > Priority: Critical > Fix For: 2.4.2 > > Attachments: AMBARI-18492_2.patch > > > When running alerts in a large cluster (for example a cluster with 1300 hosts), some alerts like the Stale Alert may create text too large to store in the database. > On MySQL, for example, the size of a {{TEXT}} field is {{65k}} (less if UTF-8 is used). Normally, this is plenty of space. However, some clusters experience: > {code} > ERROR [alert-event-bus-1] AmbariJpaLocalTxnInterceptor:188 - [DETAILED ERROR] Internal exception (1) : > com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'alert_text' at row 1 > at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4185) > {code} > The quick solution to fix this problem is to increase the field to the {{MEDIUMTEXT}} size which allows for {{16MB}} of data (way overkill): > {code} > ALTER TABLE alert_history MODIFY alert_text MEDIUMTEXT; > ALTER TABLE alert_current MODIFY latest_text MEDIUMTEXT; > {code} > Alert text should be middle-ellipsized -- This message was sent by Atlassian JIRA (v6.3.4#6332)