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 F1142200CBE for ; Fri, 23 Jun 2017 02:14:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EF6AB160BF4; Fri, 23 Jun 2017 00:14:03 +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 3F8AF160BE7 for ; Fri, 23 Jun 2017 02:14:03 +0200 (CEST) Received: (qmail 59154 invoked by uid 500); 23 Jun 2017 00:14:02 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 59143 invoked by uid 99); 23 Jun 2017 00:14:02 -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 00:14:02 +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 AF939C01DB for ; Fri, 23 Jun 2017 00:14:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[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 PObT_ByqyT6Q for ; Fri, 23 Jun 2017 00: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 C26955F5B8 for ; Fri, 23 Jun 2017 00: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 5F9F3E02AA for ; Fri, 23 Jun 2017 00: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 1786721941 for ; Fri, 23 Jun 2017 00:14:00 +0000 (UTC) Date: Fri, 23 Jun 2017 00:14:00 +0000 (UTC) From: "Xiaoyu Yao (JIRA)" To: hdfs-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (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 00:14:04 -0000 Xiaoyu Yao created HDFS-12016: --------------------------------- Summary: 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 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-dev-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org