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 E1CC5200C04 for ; Tue, 10 Jan 2017 06:57:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E04AE160B49; Tue, 10 Jan 2017 05:57:59 +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 5BC5F160B3E for ; Tue, 10 Jan 2017 06:57:59 +0100 (CET) Received: (qmail 88043 invoked by uid 500); 10 Jan 2017 05:57:58 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 88032 invoked by uid 99); 10 Jan 2017 05:57:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2017 05:57:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 617312C1F54 for ; Tue, 10 Jan 2017 05:57:58 +0000 (UTC) Date: Tue, 10 Jan 2017 05:57:58 +0000 (UTC) From: "Daniel Templeton (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-6073) Misuse of format specifier in Preconditions.checkArgument MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 10 Jan 2017 05:58:00 -0000 [ https://issues.apache.org/jira/browse/YARN-6073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15814006#comment-15814006 ] Daniel Templeton commented on YARN-6073: ---------------------------------------- Patch looks good to me. +1 > Misuse of format specifier in Preconditions.checkArgument > --------------------------------------------------------- > > Key: YARN-6073 > URL: https://issues.apache.org/jira/browse/YARN-6073 > Project: Hadoop YARN > Issue Type: Bug > Reporter: Yongjun Zhang > Assignee: Yuanbo Liu > Priority: Trivial > Attachments: YARN-6073.001.patch > > > RMAdminCLI.java > {code} > int nLabels = map.get(nodeId).size(); > Preconditions.checkArgument(nLabels <= 1, "%d labels specified on host=%s" > + ", please note that we do not support specifying multiple" > + " labels on a single host for now.", nLabels, nodeIdStr); > {code} > The {{%d}} should be replaced with {{%s}}, per > https://google.github.io/guava/releases/19.0/api/docs/com/google/common/base/Preconditions.html -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org