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 B1950200AF6 for ; Fri, 27 May 2016 23:42:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B01AF160A10; Fri, 27 May 2016 21:42:14 +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 32DA3160A12 for ; Fri, 27 May 2016 23:42:14 +0200 (CEST) Received: (qmail 5886 invoked by uid 500); 27 May 2016 21:42:13 -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 5858 invoked by uid 99); 27 May 2016 21:42:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 May 2016 21:42:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 066042C1F69 for ; Fri, 27 May 2016 21:42:13 +0000 (UTC) Date: Fri, 27 May 2016 21:42:13 +0000 (UTC) From: "Jing Zhao (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-10468) HDFS read ends up ignoring an interrupt MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 27 May 2016 21:42:14 -0000 [ https://issues.apache.org/jira/browse/HDFS-10468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15304851#comment-15304851 ] Jing Zhao commented on HDFS-10468: ---------------------------------- When the {{blockSeekTo}} gets {{ClosedByInterruptException}}, the IO channels have already been interrupted. Instead of retrying the read with other DataNodes for reading, maybe a better choice here is to check the current thread's interrupt state and throw the {{ClosedByInterruptException}} to upper level. Will upload a patch for this. > HDFS read ends up ignoring an interrupt > --------------------------------------- > > Key: HDFS-10468 > URL: https://issues.apache.org/jira/browse/HDFS-10468 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: Siddharth Seth > Assignee: Jing Zhao > Attachments: log > > > If an interrupt comes in during an HDFS read - it looks like HDFS ends up ignoring it (handling it), and retries the read after an interval. > An interrupt should result in the read being cancelled, with an InterruptedException being thrown. > Similarly - if an HDFS op is started with the interrupt status on the thread set, an InterruptedException should be thrown. > cc [~jingzhao] -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org