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 E68058840 for ; Fri, 26 Aug 2011 04:02:23 +0000 (UTC) Received: (qmail 92435 invoked by uid 500); 26 Aug 2011 04:02:23 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 90202 invoked by uid 500); 26 Aug 2011 04:02:06 -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 90158 invoked by uid 99); 26 Aug 2011 04:01:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Aug 2011 04:01:55 +0000 X-ASF-Spam-Status: No, hits=-2000.5 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; Fri, 26 Aug 2011 04:01:52 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8EE5BCF7C8 for ; Fri, 26 Aug 2011 04:01:32 +0000 (UTC) Date: Fri, 26 Aug 2011 04:01:32 +0000 (UTC) From: "jiraposter@reviews.apache.org (JIRA)" To: issues@hbase.apache.org Message-ID: <83635935.16356.1314331292582.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 [ https://issues.apache.org/jira/browse/HBASE-4117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13091556#comment-13091556 ] jiraposter@reviews.apache.org commented on HBASE-4117: ------------------------------------------------------ ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/1621/ ----------------------------------------------------------- (Updated 2011-08-26 04:00:49.869021) Review request for hbase. Changes ------- Several code-cleanup related changes. Summary ------- Exposes JSON-parseable fingerprint and details for queries that take longer than a configurable threshold time. The exposure is currently to the main regionserver log, along with a (operationTooSlow) tag which allows it to be grepped out and easily aggregated and/or monitored in administrator scripts. The patch also provides a standard way to extract fingerprint and detail information of interest by requiring each "Operation" to provide a fingerprint map and a details map, which will be a superset of the fingerprint. This addresses bug HBASE-4117. https://issues.apache.org/jira/browse/HBASE-4117 Diffs (updated) ----- /src/main/java/org/apache/hadoop/hbase/KeyValue.java 1161979 /src/main/java/org/apache/hadoop/hbase/client/Delete.java 1161979 /src/main/java/org/apache/hadoop/hbase/client/Get.java 1161979 /src/main/java/org/apache/hadoop/hbase/client/MultiAction.java 1161979 /src/main/java/org/apache/hadoop/hbase/client/MultiPut.java 1161979 /src/main/java/org/apache/hadoop/hbase/client/Operation.java PRE-CREATION /src/main/java/org/apache/hadoop/hbase/client/Put.java 1161979 /src/main/java/org/apache/hadoop/hbase/client/Scan.java 1161979 /src/main/java/org/apache/hadoop/hbase/ipc/HBaseServer.java 1161979 /src/main/java/org/apache/hadoop/hbase/ipc/WritableRpcEngine.java 1161979 /src/test/java/org/apache/hadoop/hbase/client/TestOperation.java PRE-CREATION Diff: https://reviews.apache.org/r/1621/diff Testing ------- Monitored get and put latency with and without the patch using reasonable hbase.ipc.warn.response.time settings (1000ms, 2000ms). Performance was not noticeably impacted. Thanks, Riley > 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-v2.patch, 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