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 62668200CAE for ; Wed, 21 Jun 2017 17:42:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 61008160BF0; Wed, 21 Jun 2017 15:42: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 A3A94160BD0 for ; Wed, 21 Jun 2017 17:42:05 +0200 (CEST) Received: (qmail 28492 invoked by uid 500); 21 Jun 2017 15:42:04 -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 28481 invoked by uid 99); 21 Jun 2017 15:42:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jun 2017 15:42:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 3C9A2CEE8B for ; Wed, 21 Jun 2017 15:42:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.211 X-Spam-Level: X-Spam-Status: No, score=-99.211 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id vmiBNPYfH3L3 for ; Wed, 21 Jun 2017 15:42:03 +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 87B1560DE8 for ; Wed, 21 Jun 2017 15:42:02 +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 7A791E0DA1 for ; Wed, 21 Jun 2017 15:42:01 +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 836EB240B9 for ; Wed, 21 Jun 2017 15:42:00 +0000 (UTC) Date: Wed, 21 Jun 2017 15:42:00 +0000 (UTC) From: "Sean Mackrory (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-10702) Add a Client API and Proxy Provider to enable stale read from Standby MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 21 Jun 2017 15:42:06 -0000 [ https://issues.apache.org/jira/browse/HDFS-10702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sean Mackrory updated HDFS-10702: --------------------------------- Attachment: HDFS-10702.008.patch Rebasing patch on more recent changes. I had also discovered that one of the tests was failing - if you disable stale reads client-side and a fail-over happens before a write-operation, you still might hit a standby namenode and the server might still return a response. I did a quick fix by also setting the minimum txId to Long.MAX_VALUE. Not sure that's how I want to fix it: it means anyone would have to reset the txId when enabling (although in practice I doubt that's a problem, as long as they know they have to, and I doubt that will be a common use case). I'm going to look at how best to address the potential getBlockLocations issue as well. > Add a Client API and Proxy Provider to enable stale read from Standby > --------------------------------------------------------------------- > > Key: HDFS-10702 > URL: https://issues.apache.org/jira/browse/HDFS-10702 > Project: Hadoop HDFS > Issue Type: Improvement > Reporter: Jiayi Zhou > Assignee: Sean Mackrory > Priority: Minor > Attachments: HDFS-10702.001.patch, HDFS-10702.002.patch, HDFS-10702.003.patch, HDFS-10702.004.patch, HDFS-10702.005.patch, HDFS-10702.006.patch, HDFS-10702.007.patch, HDFS-10702.008.patch, StaleReadfromStandbyNN.pdf > > > Currently, clients must always talk to the active NameNode when performing any metadata operation, which means active NameNode could be a bottleneck for scalability. One way to solve this problem is to send read-only operations to Standby NameNode. The disadvantage is that it might be a stale read. > Here, I'm thinking of adding a Client API to enable/disable stale read from Standby which gives Client the power to set the staleness restriction. -- 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