From hdfs-dev-return-33842-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Mon Sep 10 20:46:08 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 32A76180656 for ; Mon, 10 Sep 2018 20:46:08 +0200 (CEST) Received: (qmail 52350 invoked by uid 500); 10 Sep 2018 18:46: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 52338 invoked by uid 99); 10 Sep 2018 18:46: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; Mon, 10 Sep 2018 18:46: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 B918C18DAF7 for ; Mon, 10 Sep 2018 18:46: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 UnSJpioNTkmw for ; Mon, 10 Sep 2018 18:46: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 D20125F3B2 for ; Mon, 10 Sep 2018 18:46: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 6FCCDE02EB for ; Mon, 10 Sep 2018 18:46: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 26CFD26B57 for ; Mon, 10 Sep 2018 18:46:00 +0000 (UTC) Date: Mon, 10 Sep 2018 18:46:00 +0000 (UTC) From: "Ajay Kumar (JIRA)" To: hdfs-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HDDS-427) For containers with no replica ContainerStateMap#getContainerReplicas should return empty map MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Ajay Kumar created HDDS-427: ------------------------------- Summary: For containers with no replica ContainerStateMap#getContainerReplicas should return empty map Key: HDDS-427 URL: https://issues.apache.org/jira/browse/HDDS-427 Project: Hadoop Distributed Data Store Issue Type: Improvement Reporter: Ajay Kumar Callers of an API ContainerStateMap#getContainerReplicas should be allowed to decide if its voilaton of some condition (warranting exception) instead of it being implicit to every caller. ContainerStateMap#getContainerReplicas should return empty map. Callers can decide if no replicas for given container is a volition of a business condition. Throwing exception in this API also results in a subtle bug in ContainerReportHandler where exception for one container may result in whole container list being skipped. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org