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 2510E200CBE for ; Fri, 7 Jul 2017 21:21:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 23809169D2E; Fri, 7 Jul 2017 19:21:04 +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 69199169D2A for ; Fri, 7 Jul 2017 21:21:03 +0200 (CEST) Received: (qmail 31192 invoked by uid 500); 7 Jul 2017 19:21:02 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 31180 invoked by uid 99); 7 Jul 2017 19:21:02 -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; Fri, 07 Jul 2017 19:21:02 +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 E9D48191742 for ; Fri, 7 Jul 2017 19:21:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[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 ICMvxW3IA-dL for ; Fri, 7 Jul 2017 19:21:01 +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 021B75F5B7 for ; Fri, 7 Jul 2017 19:21: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 682C4E0D34 for ; Fri, 7 Jul 2017 19:21: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 1A6BB24696 for ; Fri, 7 Jul 2017 19:21:00 +0000 (UTC) Date: Fri, 7 Jul 2017 19:21:00 +0000 (UTC) From: "James Clampffer (JIRA)" To: hdfs-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HDFS-12103) libhdfs++: Provide workaround to support cancel on filesystem connect until HDFS-11437 is resolved MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 07 Jul 2017 19:21:04 -0000 James Clampffer created HDFS-12103: -------------------------------------- Summary: libhdfs++: Provide workaround to support cancel on filesystem connect until HDFS-11437 is resolved Key: HDFS-12103 URL: https://issues.apache.org/jira/browse/HDFS-12103 Project: Hadoop HDFS Issue Type: Sub-task Reporter: James Clampffer Assignee: James Clampffer HDFS-11437 is going to take a non-trivial amount of work to do right. In the meantime it'd be nice to have a way to cancel pending connections (even when the FS claimed they are finished). Proposed workaround is to relax the rules about when FileSystem::CancelPending connect can be called since it isn't able to properly determine when it's connected anyway. In order to determine when the FS has connected you can do some simple RPC call since that will wait on failover. If CancelPending can be called during that first RPC call then it will effectively be canceling FileSystem::Connect Current cancel rules - asterisk on steps where CancelPending is allowed FileSystem::Connect called FileSystem communicates with first NN * FileSystem::Connect returns - even if it hasn't communicated with the active NN Proposed relaxation FileSystem::Connect called FileSystem communicates with first NN* FileSystem::Connect returns * FileSystem::GetFileInfo called * -any namenode RPC call will do, ignore perm errors RPC engine blocks until it hits the active or runs out of retries * FileSystem::GetFileInfo returns It'd be up to the user to add in the dummy NN RPC call. Once HDFS-11437 is fixed this workaround can be removed. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org