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 28A93200B24 for ; Wed, 1 Jun 2016 13:46:01 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 276E7160A41; Wed, 1 Jun 2016 11:46:01 +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 79D2A160A46 for ; Wed, 1 Jun 2016 13:46:00 +0200 (CEST) Received: (qmail 33342 invoked by uid 500); 1 Jun 2016 11:45:59 -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 33323 invoked by uid 99); 1 Jun 2016 11:45:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jun 2016 11:45:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 504AB2C1F61 for ; Wed, 1 Jun 2016 11:45:59 +0000 (UTC) Date: Wed, 1 Jun 2016 11:45:59 +0000 (UTC) From: "Yu Li (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-15931) Add log for long-running tasks in AsyncProcess MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 01 Jun 2016 11:46:01 -0000 [ https://issues.apache.org/jira/browse/HBASE-15931?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yu Li updated HBASE-15931: -------------------------- Attachment: HBASE-15931.patch Here's the initial patch. Introduce two thresholds for the detailed logging: {{hbase.client.threshold.log.details}} default to 10 which means to start logging regionservers processing the in-progress tasks when 10 or less task left, and hard-coded {{THRESHOLD_TO_LOG_REGION_DETAILS}} which means to start logging regions holding requests when there're only 2 or less tasks left. Also add back logging for table name so we could more easily locate the regionserver processing the long-tail request. > Add log for long-running tasks in AsyncProcess > ---------------------------------------------- > > Key: HBASE-15931 > URL: https://issues.apache.org/jira/browse/HBASE-15931 > Project: HBase > Issue Type: Improvement > Reporter: Yu Li > Assignee: Yu Li > Attachments: HBASE-15931.patch > > > Currently if there's any long-tail tasks in a multi-action request like triggered by {{BufferedMutatorImpl#backgroundFlushCommits}}, we could see logging message like below > {noformat} > 2016-05-31 09:36:55,461 INFO [Thread-16] org.apache.hadoop.hbase.client.AsyncProcess: #28, waiting for some tasks to finish. Expected max=0, tasksInProgress=1 > {noformat} > but there's no way to know detail of this long-tail, such as which table/region it's accessing. This JIRA aims at adding such log for easier debugging. -- This message was sent by Atlassian JIRA (v6.3.4#6332)