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 23B60200BF7 for ; Mon, 9 Jan 2017 22:40:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 224F0160B3E; Mon, 9 Jan 2017 21:40: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 69E8F160B4C for ; Mon, 9 Jan 2017 22:40:00 +0100 (CET) Received: (qmail 70170 invoked by uid 500); 9 Jan 2017 21:39: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 69852 invoked by uid 99); 9 Jan 2017 21:39:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jan 2017 21:39:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B5FC82C2A68 for ; Mon, 9 Jan 2017 21:39:58 +0000 (UTC) Date: Mon, 9 Jan 2017 21:39:58 +0000 (UTC) From: "Lars Hofhansl (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-17440) [0.98] Make sure DelayedClosing chore is stopped as soon as an HConnection is closed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 09 Jan 2017 21:40:01 -0000 [ https://issues.apache.org/jira/browse/HBASE-17440?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lars Hofhansl updated HBASE-17440: ---------------------------------- Attachment: 17440.txt Here's the trivial fix, just trigger the chore immediately if the connection is stopped, the chore will then determine that its connection is shutdown and end itself. I tested this, I was not able to build up 1000's of DelayedClosing threads in a tight loop. (as said, this is not the main issue we've been seeing, but something I noticed on the way) Please have a look. [~apurtell], fyi. > [0.98] Make sure DelayedClosing chore is stopped as soon as an HConnection is closed > ------------------------------------------------------------------------------------ > > Key: HBASE-17440 > URL: https://issues.apache.org/jira/browse/HBASE-17440 > Project: HBase > Issue Type: Bug > Affects Versions: 0.98.24 > Reporter: Lars Hofhansl > Assignee: Lars Hofhansl > Attachments: 17440.txt > > > We're seeing many issue with run-away ZK client connection in long running app servers. 10k or more send or event threads are happening frequently. > While I looked around in the code I noticed that DelayedClosing closing is not immediately ended when an HConnection is closed, when there's an issue with HBase or ZK and client reconnect in a tight loop, this can lead temporarily to very many threads running. These will all get cleaned out after at most 60s, but during that time a lot of threads can be created. > The fix is a one-liner. We'll likely file other issues soon. > Interestingly branch-1 and beyond do not have this chore anymore, although - at least in branch-1 and later - I still see the ZooKeeperAliveConnection. -- This message was sent by Atlassian JIRA (v6.3.4#6332)