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 034D318587 for ; Fri, 22 May 2015 09:36:20 +0000 (UTC) Received: (qmail 48603 invoked by uid 500); 22 May 2015 09:36:18 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 48524 invoked by uid 500); 22 May 2015 09:36:18 -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 48283 invoked by uid 99); 22 May 2015 09:36:18 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 May 2015 09:36:18 +0000 Date: Fri, 22 May 2015 09:36:18 +0000 (UTC) From: "Archana T (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HDFS-8465) Mover is success even when space exceeds storage quota. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Archana T created HDFS-8465: ------------------------------- Summary: Mover is success even when space exceeds storage quota. Key: HDFS-8465 URL: https://issues.apache.org/jira/browse/HDFS-8465 Project: Hadoop HDFS Issue Type: Bug Components: balancer & mover Reporter: Archana T Assignee: surendra singh lilhore *Steps :* 1. Create directory /dir 2. Set its storage policy to HOT -- hdfs storagepolicies -setStoragePolicy -path /dir -policy HOT 3. Insert files of total size 10,000B into /dir. 4. Set above path "/dir" ARCHIVE type quota to 5,000B -- hdfs dfsadmin -setSpaceQuota 5000 -storageType ARCHIVE /dir {code} hdfs dfs -count -v -q -h -t /dir DISK_QUOTA REM_DISK_QUOTA SSD_QUOTA REM_SSD_QUOTA ARCHIVE_QUOTA REM_ARCHIVE_QUOTA PATHNAME none inf none inf 4.9 K 4.9 K /dir {code} 5. Now change policy of '/dir' to COLD 6. Execute Mover command *Observations:* 1. Mover is successful moving all 10,000B to ARCHIVE datapath. 2. Count command displays negative value '-59.4K'-- {code} hdfs dfs -count -v -q -h -t /dir DISK_QUOTA REM_DISK_QUOTA SSD_QUOTA REM_SSD_QUOTA ARCHIVE_QUOTA REM_ARCHIVE_QUOTA PATHNAME none inf none inf 4.9 K -59.4 K /dir {code} *Expected:* Mover should not be successful as ARCHIVE quota is only 5,000B. Negative value should not be displayed for quota output. -- This message was sent by Atlassian JIRA (v6.3.4#6332)