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 0864F18422 for ; Thu, 21 Jan 2016 14:22:41 +0000 (UTC) Received: (qmail 60452 invoked by uid 500); 21 Jan 2016 14:22:40 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 60322 invoked by uid 500); 21 Jan 2016 14:22:40 -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 60247 invoked by uid 99); 21 Jan 2016 14:22:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jan 2016 14:22:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 237382C1F5B for ; Thu, 21 Jan 2016 14:22:40 +0000 (UTC) Date: Thu, 21 Jan 2016 14:22:40 +0000 (UTC) From: "Hudson (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-9625) set replication for empty file failed when set storage policy 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-9625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15110641#comment-15110641 ] Hudson commented on HDFS-9625: ------------------------------ FAILURE: Integrated in Hadoop-trunk-Commit #9147 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/9147/]) HDFS-9625. set replication for empty file failed when set storage policy (vinayakumarb: rev b7372b7166a13111b98794602ca4c166dfd78d29) * hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt * hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java * hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestSetrepIncreasing.java > set replication for empty file failed when set storage policy > -------------------------------------------------------------- > > Key: HDFS-9625 > URL: https://issues.apache.org/jira/browse/HDFS-9625 > Project: Hadoop HDFS > Issue Type: Bug > Components: namenode > Affects Versions: 2.7.1 > Reporter: DENG FEI > Assignee: DENG FEI > Fix For: 2.7.3 > > Attachments: HDFS-9625.003.patch, HDFS-9625.004.patch, patch.HDFS-9625.002, patch_HDFS-9625.20160107 > > > When setReplication, the FSDirectory#updateCount need calculate the related storageTypes quota,but will check the file consume the ds quota is positive. > Actually,it's may set replication after create file,like JobSplitWriter#createSplitFiles. > It's also can reproduce on command shell: > 1. hdfs storagepolicies -setStoragePolicy -path /tmp -policy HOT > 2. hdfs dfs -touchz /tmp/test > 3. hdfs dfs -setrep 5 /tmp/test -- This message was sent by Atlassian JIRA (v6.3.4#6332)