Return-Path: X-Original-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D9F1B18183 for ; Fri, 4 Dec 2015 18:57:12 +0000 (UTC) Received: (qmail 35917 invoked by uid 500); 4 Dec 2015 18:57:11 -0000 Delivered-To: apmail-hadoop-hdfs-dev-archive@hadoop.apache.org Received: (qmail 35522 invoked by uid 500); 4 Dec 2015 18:57:11 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-dev@hadoop.apache.org Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 35058 invoked by uid 99); 4 Dec 2015 18:57:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Dec 2015 18:57:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 389A72C1F61 for ; Fri, 4 Dec 2015 18:57:11 +0000 (UTC) Date: Fri, 4 Dec 2015 18:57:11 +0000 (UTC) From: "BELUGA BEHR (JIRA)" To: hdfs-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HDFS-9507) LeaseRenewer Logging Under-Reporting MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 BELUGA BEHR created HDFS-9507: --------------------------------- Summary: LeaseRenewer Logging Under-Reporting Key: HDFS-9507 URL: https://issues.apache.org/jira/browse/HDFS-9507 Project: Hadoop HDFS Issue Type: Improvement Components: namenode Affects Versions: 2.7.1 Reporter: BELUGA BEHR Priority: Minor Why is it that in LeaseRenewer#run() failures to renew a lease on a file are reported with "warn" level logging, but in LeaseRenewer#renew() it is reported with a "debug" level warn? In LeaseRenewer#renew(), if the method renewLease() returns 'false' then the problem is silently discarded (continue, no Exception is thrown) and the next client in the list tries to renew. {code:title=LeaseRenewer.java|borderStyle=solid} private void run(final int id) throws InterruptedException { ... try { renew(); lastRenewed = Time.monotonicNow(); } catch (SocketTimeoutException ie) { LOG.warn("Failed to renew lease for " + clientsString() + " for " + (elapsed/1000) + " seconds. Aborting ...", ie); synchronized (this) { while (!dfsclients.isEmpty()) { DFSClient dfsClient = dfsclients.get(0); dfsClient.closeAllFilesBeingWritten(true); closeClient(dfsClient); } //Expire the current LeaseRenewer thread. emptyTime = 0; } break; } catch (IOException ie) { LOG.warn("Failed to renew lease for " + clientsString() + " for " + (elapsed/1000) + " seconds. Will retry shortly ...", ie); } } ... } private void renew() throws IOException { { ... if (!c.renewLease()) { LOG.debug("Did not renew lease for client {}", c); continue; } ... } {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)