Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 69DC011DA8 for ; Fri, 6 Jun 2014 15:46:04 +0000 (UTC) Received: (qmail 57191 invoked by uid 500); 6 Jun 2014 15:46:04 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 57150 invoked by uid 500); 6 Jun 2014 15:46:04 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 57140 invoked by uid 99); 6 Jun 2014 15:46:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jun 2014 15:46:04 +0000 Date: Fri, 6 Jun 2014 15:46:04 +0000 (UTC) From: "Ravi Prakash (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-10660) GraphiteSink should implement Closeable MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-10660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14019951#comment-14019951 ] Ravi Prakash commented on HADOOP-10660: --------------------------------------- Ted: I'm afraid I don't see where close() is being called either. AbstractGangliaSink->GangliaSink30->GangliaSink31 don't implement it either. I don't see a problem if it were added so if you can please point out where its being used, I have no objection. If its an external project, should we consider making MetricsSink implement Closeable (in a separate JIRA ofcourse)? Chen: Thanks for the patch. However if we were to close the writer, I would expect to check during a putMetrics whether it was null, and perhaps log a message? Also a log message at close could be helpful in later debugging issues. > GraphiteSink should implement Closeable > --------------------------------------- > > Key: HADOOP-10660 > URL: https://issues.apache.org/jira/browse/HADOOP-10660 > Project: Hadoop Common > Issue Type: Bug > Reporter: Ted Yu > Assignee: Chen He > Attachments: HADOOP-10660.patch > > > GraphiteSink wraps OutputStreamWriter around socket's output stream. > Currently the socket is never closed. > GraphiteSink should implement Closeable such that MetricsSystem can close the socket when it is stopped. -- This message was sent by Atlassian JIRA (v6.2#6252)