From hdfs-issues-return-231151-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Tue Aug 28 11:14:03 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 4732A180621 for ; Tue, 28 Aug 2018 11:14:03 +0200 (CEST) Received: (qmail 2137 invoked by uid 500); 28 Aug 2018 09:14:02 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 2123 invoked by uid 99); 28 Aug 2018 09:14:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Aug 2018 09:14:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id CA60418072F for ; Tue, 28 Aug 2018 09:14:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id GCYqVlTFisSb for ; Tue, 28 Aug 2018 09:14:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id E422D5F3CC for ; Tue, 28 Aug 2018 09:14:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 7BC69E00A5 for ; Tue, 28 Aug 2018 09:14:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 39F5D23F98 for ; Tue, 28 Aug 2018 09:14:00 +0000 (UTC) Date: Tue, 28 Aug 2018 09:14:00 +0000 (UTC) From: "Yiqun Lin (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-13863) FsDatasetImpl should log DiskOutOfSpaceException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-13863?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1659= 4732#comment-16594732 ]=20 Yiqun Lin commented on HDFS-13863: ---------------------------------- [~ferhui], Can you decorate the warn message like following? It will bette= r understanding (I added a extra space after char =E2=80=9C:=E2=80=9D). {code:java} "Insufficient space for placing the block on a transient volume, fall back = to persistent storage: " + de.getMessage()); {code} > FsDatasetImpl should log DiskOutOfSpaceException > ------------------------------------------------ > > Key: HDFS-13863 > URL: https://issues.apache.org/jira/browse/HDFS-13863 > Project: Hadoop HDFS > Issue Type: Bug > Components: hdfs > Affects Versions: 3.1.0, 2.9.1, 3.0.3 > Reporter: Fei Hui > Assignee: Fei Hui > Priority: Major > Attachments: HDFS-13863.001.patch, HDFS-13863.002.patch > > > The code in function *createRbw* as follow > {code:java} > try { > // First try to place the block on a transient volume. > ref =3D volumes.getNextTransientVolume(b.getNumBytes()); > datanode.getMetrics().incrRamDiskBlocksWrite(); > } catch (DiskOutOfSpaceException de) { > // Ignore the exception since we just fall back to persistent s= torage. > } finally { > if (ref =3D=3D null) { > cacheManager.release(b.getNumBytes()); > } > } > {code} > I think we should log the exception because it took me long time to resol= ve problems, and maybe others face the same problems. > When i test ram_disk, i found no data was written into randomdisk. I debu= g, deep into the source code, and found that randomdisk size was less than = reserved space. I think if message was logged, i would resolve the problem = quickly. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org