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 0DE9B7407 for ; Wed, 17 Aug 2011 04:31:09 +0000 (UTC) Received: (qmail 73457 invoked by uid 500); 17 Aug 2011 04:31:07 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 73300 invoked by uid 500); 17 Aug 2011 04:30:56 -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 73283 invoked by uid 99); 17 Aug 2011 04:30:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2011 04:30:51 +0000 X-ASF-Spam-Status: No, hits=-2001.1 required=5.0 tests=ALL_TRUSTED,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; Wed, 17 Aug 2011 04:30:48 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2399EC0BDB for ; Wed, 17 Aug 2011 04:30:27 +0000 (UTC) Date: Wed, 17 Aug 2011 04:30:27 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: <1811117907.44190.1313555427142.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <726277654.5522.1311112738101.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-4117) Slow Query Log 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-4117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13086126#comment-13086126 ] stack commented on HBASE-4117: ------------------------------ @Andrew I appreciate your showing up in your architect hat flashing the red card. Please stay on the prowl and flag the violations. In this case, on review, I think we are talking honest logging (logging already has a system that facilitates redirection and feeding events to other than files that live under HBASE_LOG_DIR -- which reminds me, I need to go back to Riley and make sure that these events CAN be directed to other than the .log file cleanly). As Riley says, these logs at an extreme will likely make most sense if shown in context amidst the logging of what else was going on on the server. The patch also includes nice refactoring of base classes -- Scan, Get, etc. -- to make it so they can dump out a self-description (either a fingerprint/synopsis, or a full catalog of the payload being carried) in text or json that looks like it can be passed to whatever asks for the info (log or metrics or...) We are still missing the general theory on how to pass hbase emissions but I think this patch helps move us closer to a general system much more than it adds distraction. > Slow Query Log > -------------- > > Key: HBASE-4117 > URL: https://issues.apache.org/jira/browse/HBASE-4117 > Project: HBase > Issue Type: New Feature > Components: ipc > Reporter: Riley Patterson > Assignee: Riley Patterson > Priority: Minor > Labels: client, ipc > Attachments: HBASE-4117.patch > > > Produce log messages for slow queries. The RPC server will decide what is slow based on a configurable "warn response time" parameter. Queries designated as slow will then output a "response too slow" message followed by a fingerprint of the query, and a summary limited in size by another configurable parameter (to limit log spamming). -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira