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 4CDA618DD4 for ; Fri, 18 Dec 2015 22:03:47 +0000 (UTC) Received: (qmail 23109 invoked by uid 500); 18 Dec 2015 22:03:47 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 23051 invoked by uid 500); 18 Dec 2015 22:03:47 -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 23017 invoked by uid 99); 18 Dec 2015 22:03:46 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Dec 2015 22:03:46 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C86612C1F6B for ; Fri, 18 Dec 2015 22:03:46 +0000 (UTC) Date: Fri, 18 Dec 2015 22:03:46 +0000 (UTC) From: "Chang Li (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-9105) separate replication config for client to create a file or set replication 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-9105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chang Li updated HDFS-9105: --------------------------- Attachment: HDFS-9105.2.patch added a unit test to test changes in verifyReplication, which is only used by create file and set replication for a file > separate replication config for client to create a file or set replication > -------------------------------------------------------------------------- > > Key: HDFS-9105 > URL: https://issues.apache.org/jira/browse/HDFS-9105 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: Chang Li > Assignee: Chang Li > Attachments: HDFS-9105.2.patch, HDFS-9105.patch > > > one scenario when we want this new config: we want to enforce min replication of value 2, when client try to create a file, it's check against the replication factor of the new config, which is set to 2, so that client can not create a file of replication of 1. But when client try to close file and there are some datanode failures in the pipeline and only 1 datanode remain, it is checked against old minReplication value, which has value 1, so we will allow client to close the file. -- This message was sent by Atlassian JIRA (v6.3.4#6332)