Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-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 DF22618D72 for ; Tue, 10 Nov 2015 15:54:11 +0000 (UTC) Received: (qmail 3439 invoked by uid 500); 10 Nov 2015 15:54:11 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 3347 invoked by uid 500); 10 Nov 2015 15:54:11 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 3285 invoked by uid 99); 10 Nov 2015 15:54:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Nov 2015 15:54:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 41B5C2C1F77 for ; Tue, 10 Nov 2015 15:54:11 +0000 (UTC) Date: Tue, 10 Nov 2015 15:54:11 +0000 (UTC) From: "Bob Hansen (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-9228) libhdfs++ should respect NN retry configuration settings 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/HDFS-9228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bob Hansen updated HDFS-9228: ----------------------------- Attachment: HDFS-9228.HDFS-8707.001.patch Implemented retry with fixed intervals (the java client default retry). Defaults to no retry. I had to move the Engine's RPC connection from a unique_ptr to a shared_ptr, since it could be released during rpc callbacks (e.g. a comms error). Made rpc_connection's start implicit on completing handshake to help in coordinating with the engine. Because the headers can now change, the Request class encodes the payload on construction, but not the whole message. Still needs tests over retry and recovery, but I wanted feedback on the implementation. > libhdfs++ should respect NN retry configuration settings > -------------------------------------------------------- > > Key: HDFS-9228 > URL: https://issues.apache.org/jira/browse/HDFS-9228 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: hdfs-client > Reporter: Bob Hansen > Assignee: Bob Hansen > Attachments: HDFS-9228.HDFS-8707.001.patch > > > Handle the use case of temporary network or NN hiccups and have a configurable number of retries for NN operations. -- This message was sent by Atlassian JIRA (v6.3.4#6332)