Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 822769116 for ; Thu, 26 Apr 2012 20:07:58 +0000 (UTC) Received: (qmail 76744 invoked by uid 500); 26 Apr 2012 20:07:58 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 76696 invoked by uid 500); 26 Apr 2012 20:07:58 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 76687 invoked by uid 99); 26 Apr 2012 20:07:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Apr 2012 20:07:58 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Apr 2012 20:07:57 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 72C47412CAB for ; Thu, 26 Apr 2012 20:07:36 +0000 (UTC) Date: Thu, 26 Apr 2012 20:07:36 +0000 (UTC) From: "Todd Lipcon (JIRA)" To: issues@hbase.apache.org Message-ID: <1190382458.86.1335470856575.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1967256134.71.1335468511364.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-5886) Add new metric for possible data loss due to puts without WAL MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-5886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13262994#comment-13262994 ] Todd Lipcon commented on HBASE-5886: ------------------------------------ I think the metrics names could be improved here -- "putWithoutWAL" could be "numPutsWithoutWAL" and "possibleDataLossSize" perhaps "mbInMemoryWithoutWAL"? - in recordPossibleDataLossNoWal, use {{getAndIncrement}} instead of {{incrementAndGet}}, and compare the result to 0 -- otherwise you're doing an extra atomic op and have a potential race - the warning message should include the client IP address as well as the region ID. Perhaps something like "Client 123.123.123.123 writing data to region abcdef12345 with WAL disabled. Data may be lost in the event of a crash. Will not log further warnings for this region." - the debug message when setting possibleDataLossSize back to 0 seems unnecessary. - DEFAULT_WARN_NO_WAL_INTERVAL is unused > Add new metric for possible data loss due to puts without WAL > -------------------------------------------------------------- > > Key: HBASE-5886 > URL: https://issues.apache.org/jira/browse/HBASE-5886 > Project: HBase > Issue Type: New Feature > Components: metrics, regionserver > Reporter: Matteo Bertozzi > Assignee: Matteo Bertozzi > Priority: Minor > Labels: metrics > Attachments: HBASE-5886-v0.patch > > > Add a metrics to keep track of puts without WAL and possible data loss size. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira