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 9D4A8200D2B for ; Thu, 2 Nov 2017 11:31:06 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 9BFD5160BE5; Thu, 2 Nov 2017 10:31:06 +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 E12751609EE for ; Thu, 2 Nov 2017 11:31:05 +0100 (CET) Received: (qmail 8063 invoked by uid 500); 2 Nov 2017 10:31:05 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 8050 invoked by uid 99); 2 Nov 2017 10:31:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Nov 2017 10:31:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 397541808A5 for ; Thu, 2 Nov 2017 10:31:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id a0aTVtEJXrsa for ; Thu, 2 Nov 2017 10:31:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id A305C61184 for ; Thu, 2 Nov 2017 10:31:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id BB767E0A29 for ; Thu, 2 Nov 2017 10:31:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 747A324157 for ; Thu, 2 Nov 2017 10:31:00 +0000 (UTC) Date: Thu, 2 Nov 2017 10:31:00 +0000 (UTC) From: "Jiandan Yang (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-12757) DeadLock Happened Between DFSOutputStream and LeaseRenewer when LeaseRenewer#renew SocketTimeException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 02 Nov 2017 10:31:06 -0000 [ https://issues.apache.org/jira/browse/HDFS-12757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jiandan Yang updated HDFS-12757: --------------------------------- Attachment: HDFS-12757.patch upload a UT to reproduce issue > DeadLock Happened Between DFSOutputStream and LeaseRenewer when LeaseRenewer#renew SocketTimeException > ------------------------------------------------------------------------------------------------------ > > Key: HDFS-12757 > URL: https://issues.apache.org/jira/browse/HDFS-12757 > Project: Hadoop HDFS > Issue Type: Bug > Components: hdfs-client > Reporter: Jiandan Yang > Priority: Major > Attachments: HDFS-12757.patch > > > Java stack is : > {code:java} > Found one Java-level deadlock: > ============================= > "Topology-2 (735/2000)": > waiting to lock monitor 0x00007fff4523e6e8 (object 0x00000005d3521078, a org.apache.hadoop.hdfs.client.impl.LeaseRenewer), > which is held by "LeaseRenewer:admin@na61storage" > "LeaseRenewer:admin@na61storage": > waiting to lock monitor 0x00007fff5d41e838 (object 0x00000005ec0dfa88, a org.apache.hadoop.hdfs.DFSOutputStream), > which is held by "Topology-2 (735/2000)" > Java stack information for the threads listed above: > =================================================== > "Topology-2 (735/2000)": > at org.apache.hadoop.hdfs.client.impl.LeaseRenewer.addClient(LeaseRenewer.java:227) > - waiting to lock <0x00000005d3521078> (a org.apache.hadoop.hdfs.client.impl.LeaseRenewer) > at org.apache.hadoop.hdfs.client.impl.LeaseRenewer.getInstance(LeaseRenewer.java:86) > at org.apache.hadoop.hdfs.DFSClient.getLeaseRenewer(DFSClient.java:467) > at org.apache.hadoop.hdfs.DFSClient.endFileLease(DFSClient.java:479) > at org.apache.hadoop.hdfs.DFSOutputStream.setClosed(DFSOutputStream.java:776) > at org.apache.hadoop.hdfs.DFSOutputStream.closeThreads(DFSOutputStream.java:791) > at org.apache.hadoop.hdfs.DFSOutputStream.closeImpl(DFSOutputStream.java:848) > - locked <0x00000005ec0dfa88> (a org.apache.hadoop.hdfs.DFSOutputStream) > at org.apache.hadoop.hdfs.DFSOutputStream.close(DFSOutputStream.java:805) > - locked <0x00000005ec0dfa88> (a org.apache.hadoop.hdfs.DFSOutputStream) > at org.apache.hadoop.fs.FSDataOutputStream$PositionCache.close(FSDataOutputStream.java:72) > at org.apache.hadoop.fs.FSDataOutputStream.close(FSDataOutputStream.java:106) > ...... > "LeaseRenewer:admin@na61storage": > at org.apache.hadoop.hdfs.DFSOutputStream.abort(DFSOutputStream.java:750) > - waiting to lock <0x00000005ec0dfa88> (a org.apache.hadoop.hdfs.DFSOutputStream) > at org.apache.hadoop.hdfs.DFSClient.closeAllFilesBeingWritten(DFSClient.java:586) > at org.apache.hadoop.hdfs.client.impl.LeaseRenewer.run(LeaseRenewer.java:453) > - locked <0x00000005d3521078> (a org.apache.hadoop.hdfs.client.impl.LeaseRenewer) > at org.apache.hadoop.hdfs.client.impl.LeaseRenewer.access$700(LeaseRenewer.java:76) > at org.apache.hadoop.hdfs.client.impl.LeaseRenewer$1.run(LeaseRenewer.java:310) > at java.lang.Thread.run(Thread.java:834) > Found 1 deadlock. > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org