Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0E451200CB0 for ; Fri, 23 Jun 2017 21:04:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0D526160BF2; Fri, 23 Jun 2017 19:04:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 5D66E160BE2 for ; Fri, 23 Jun 2017 21:04:04 +0200 (CEST) Received: (qmail 40299 invoked by uid 500); 23 Jun 2017 19:04:03 -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 40288 invoked by uid 99); 23 Jun 2017 19:04:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jun 2017 19:04:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 2333DC1487 for ; Fri, 23 Jun 2017 19:04:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id vNEvUnrELYn5 for ; Fri, 23 Jun 2017 19:04:02 +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 0E0E15FB2C for ; Fri, 23 Jun 2017 19:04:02 +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 7923EE0D54 for ; Fri, 23 Jun 2017 19:04:01 +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 CEAB021943 for ; Fri, 23 Jun 2017 19:04:00 +0000 (UTC) Date: Fri, 23 Jun 2017 19:04:00 +0000 (UTC) From: "Xiaoyu Yao (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-12016) Ozone: SCM: Container metadata are not loaded properly after datanode restart MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 23 Jun 2017 19:04:05 -0000 [ https://issues.apache.org/jira/browse/HDFS-12016?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xiaoyu Yao updated HDFS-12016: ------------------------------ Attachment: HDFS-12016-HDFS-7240.005.patch Remove some unrelated changes. > Ozone: SCM: Container metadata are not loaded properly after datanode restart > ----------------------------------------------------------------------------- > > Key: HDFS-12016 > URL: https://issues.apache.org/jira/browse/HDFS-12016 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: ozone, scm > Affects Versions: HDFS-7240 > Reporter: Nandakumar > Assignee: Xiaoyu Yao > Attachments: HDFS-12016-HDFS-7240.001.patch, HDFS-12016-HDFS-7240.002.patch, HDFS-12016-HDFS-7240.003.patch, HDFS-12016-HDFS-7240.004.patch, HDFS-12016-HDFS-7240.005.patch > > > Repro steps (Credit to [~nandakumar131]) > 1. create volume/bucket/key > 2. putkey > 3. restart DN > 4. getkey will hit error on container not found like below. > {code} > 2017-06-22 15:28:29,950 [Thread-48] INFO (OzoneExceptionMapper.java:39) vol-2/bucket-1/key-1 xyao 8727acc4-c1e9-4ba3-a819-4c0e16957079 - Returning exception. ex: {"httpCode":500,"shortMessage":"internalServerError","resource":"xyao","message":"org.apache.hadoop.scm.container.common.helpers.StorageContainerException: Unable to find the container. Name: 48cb0c3d-0537-4cff-b716-a7f69ebf50bc","requestID":"8 > {code} > The root cause is OzoneContainer#OzoneContainer does not load containers from repository properly when ozone.container.metadata.dirs are specified. > The fix is to append the CONTAINER_ROOT_PREFIX when looking for containers on the datanode. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org