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 81214200B56 for ; Fri, 15 Jul 2016 10:04:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7FD15160A61; Fri, 15 Jul 2016 08:04:22 +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 C88DE160A6C for ; Fri, 15 Jul 2016 10:04:21 +0200 (CEST) Received: (qmail 94302 invoked by uid 500); 15 Jul 2016 08:04:20 -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 94274 invoked by uid 99); 15 Jul 2016 08:04:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jul 2016 08:04:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 759D52C0033 for ; Fri, 15 Jul 2016 08:04:20 +0000 (UTC) Date: Fri, 15 Jul 2016 08:04:20 +0000 (UTC) From: "Zhihua Deng (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (HBASE-16212) Many Connections are created by wrong seeking pos on InputStream MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 15 Jul 2016 08:04:22 -0000 [ https://issues.apache.org/jira/browse/HBASE-16212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15378986#comment-15378986 ] Zhihua Deng edited comment on HBASE-16212 at 7/15/16 8:03 AM: -------------------------------------------------------------- I add log details to DFSInputStream#seek(long targetPos): {code:borderStyle=solid} if(pos > targetPos) { DFSClient.LOG.info(dfsClient.getClientName() + " seek " + getCurrentDatanode() + " for " + getCurrentBlock() + ". pos: " + pos + ", targetPos: " + targetPos); } {code} The attached file 'regionserver-dfsinputstream.log' shows the process. was (Author: dengzh): I add log details to DFSInputStream#seek(long targetPos): if(pos > targetPos) { DFSClient.LOG.info(dfsClient.getClientName() + " seek " + getCurrentDatanode() + " for " + getCurrentBlock() + ". pos: " + pos + ", targetPos: " + targetPos); } The attached file 'regionserver-dfsinputstream.log' shows the process. > Many Connections are created by wrong seeking pos on InputStream > ---------------------------------------------------------------- > > Key: HBASE-16212 > URL: https://issues.apache.org/jira/browse/HBASE-16212 > Project: HBase > Issue Type: Improvement > Affects Versions: 1.1.2 > Reporter: Zhihua Deng > Attachments: HBASE-16212.patch, regionserver-dfsinputstream.log > > > As described in https://issues.apache.org/jira/browse/HDFS-8659, the datanode is suffering from logging the same repeatedly. Adding log to DFSInputStream, it outputs as follows: > 2016-07-10 21:31:42,147 INFO [B.defaultRpcServer.handler=22,queue=1,port=16020] hdfs.DFSClient: DFSClient_NONMAPREDUCE_1984924661_1 seek DatanodeInfoWithStorage[10.130.1.29:50010,DS-086bc494-d862-470c-86e8-9cb7929985c6,DISK] for BP-360285305-10.130.1.11-1444619256876:blk_1109360829_35627143. pos: 111506876, targetPos: 111506843 > ... > As the pos of this input stream is larger than targetPos(the pos trying to seek), A new connection to the datanode will be created, the older one will be closed as a consequence. When the wrong seeking ops are large, the datanode's block scanner info message is spamming logs, as well as many connections to the same datanode will be created. -- This message was sent by Atlassian JIRA (v6.3.4#6332)