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 3D621183B0 for ; Thu, 5 Nov 2015 14:23:28 +0000 (UTC) Received: (qmail 51409 invoked by uid 500); 5 Nov 2015 14:23:28 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 51352 invoked by uid 500); 5 Nov 2015 14:23:28 -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 51330 invoked by uid 99); 5 Nov 2015 14:23:27 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Nov 2015 14:23:27 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CD0542C14DC for ; Thu, 5 Nov 2015 14:23:27 +0000 (UTC) Date: Thu, 5 Nov 2015 14:23:27 +0000 (UTC) From: "Brahma Reddy Battula (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-8574) When block count for a volume exceeds dfs.blockreport.split.threshold, block report causes exception 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-8574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14991717#comment-14991717 ] Brahma Reddy Battula commented on HDFS-8574: -------------------------------------------- [~arpitagarwal]/[~walter.k.su]/[~ajithshetty]/[~nijel] Sorry for coming late.Had seen similar issue(where user might not aware ),I am thinking ,shutting down the Datanode is better when this issue occurs,as of now sliently skips {{blockreports}}. any thoughts..? > When block count for a volume exceeds dfs.blockreport.split.threshold, block report causes exception > ---------------------------------------------------------------------------------------------------- > > Key: HDFS-8574 > URL: https://issues.apache.org/jira/browse/HDFS-8574 > Project: Hadoop HDFS > Issue Type: Bug > Affects Versions: 2.7.0 > Reporter: Ajith S > Assignee: Ajith S > > This piece of code in {{org.apache.hadoop.hdfs.server.datanode.BPServiceActor.blockReport()}} > {code} > // Send one block report per message. > for (int r = 0; r < reports.length; r++) { > StorageBlockReport singleReport[] = { reports[r] }; > DatanodeCommand cmd = bpNamenode.blockReport( > bpRegistration, bpos.getBlockPoolId(), singleReport, > new BlockReportContext(reports.length, r, reportId)); > numReportsSent++; > numRPCs++; > if (cmd != null) { > cmds.add(cmd); > } > {code} > when a single volume contains many blocks, i.e more than the threshold, it is trying to send the entire blockreport in one RPC, causing exception > {code} > java.lang.IllegalStateException: com.google.protobuf.InvalidProtocolBufferException: Protocol message was too large. May be malicious. Use CodedInputStream.setSizeLimit() to increase the size limit. > at org.apache.hadoop.hdfs.protocol.BlockListAsLongs$BufferDecoder$1.next(BlockListAsLongs.java:369) > at org.apache.hadoop.hdfs.protocol.BlockListAsLongs$BufferDecoder$1.next(BlockListAsLongs.java:347) > at org.apache.hadoop.hdfs.protocol.BlockListAsLongs$BufferDecoder.getBlockListAsLongs(BlockListAsLongs.java:325) > at org.apache.hadoop.hdfs.protocolPB.DatanodeProtocolClientSideTranslatorPB.blockReport(DatanodeProtocolClientSideTranslatorPB.java:190) > at org.apache.hadoop.hdfs.server.datanode.BPServiceActor.blockReport(BPServiceActor.java:473) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)