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 0864C17A80 for ; Fri, 27 Mar 2015 13:27:03 +0000 (UTC) Received: (qmail 42371 invoked by uid 500); 27 Mar 2015 13:26:53 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 42321 invoked by uid 500); 27 Mar 2015 13:26:53 -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 42309 invoked by uid 99); 27 Mar 2015 13:26:53 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Mar 2015 13:26:53 +0000 Date: Fri, 27 Mar 2015 13:26:53 +0000 (UTC) From: "Remi Catherinot (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-8001) RpcProgramNfs3 : wrong parsing of dfs.blocksize 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-8001?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Remi Catherinot updated HDFS-8001: ---------------------------------- Target Version/s: 2.6.1 Status: Patch Available (was: Open) affected line depends on hadoop version, here are the diff for 2.5.2 and 2.6.0 versions hadoop version 2.5.2 diff 182c182 < blockSize = config.getLong(DFSConfigKeys.DFS_BLOCK_SIZE_KEY, --- > blockSize = config.getLongBytes(DFSConfigKeys.DFS_BLOCK_SIZE_KEY, hadoop version 2.6.0 diff 187c187 < blockSize = config.getLong(DFSConfigKeys.DFS_BLOCK_SIZE_KEY, --- > blockSize = config.getLongBytes(DFSConfigKeys.DFS_BLOCK_SIZE_KEY, > RpcProgramNfs3 : wrong parsing of dfs.blocksize > ----------------------------------------------- > > Key: HDFS-8001 > URL: https://issues.apache.org/jira/browse/HDFS-8001 > Project: Hadoop HDFS > Issue Type: Bug > Components: nfs > Affects Versions: 2.5.2, 2.6.0 > Environment: any : windows, linux, etc. > Reporter: Remi Catherinot > Priority: Trivial > Labels: easyfix > Original Estimate: 2h > Remaining Estimate: 2h > > org/apache/hadoop/hdfs/nfs/nfs3/RpcProgramNfs3.java use Configuration.getLong to get the dfs.blocksize value, but it should use getLongBytes so it can handle syntax like 64m rather than pure numeric values. DataNode code & others all use getLongBytes. > it's line 187 in source code. > detected on version 2.5.2, checked version 2.6.0 which still has the bug. -- This message was sent by Atlassian JIRA (v6.3.4#6332)