Return-Path: X-Original-To: apmail-hadoop-common-dev-archive@www.apache.org Delivered-To: apmail-hadoop-common-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8AE634AD2 for ; Thu, 23 Jun 2011 23:23:10 +0000 (UTC) Received: (qmail 1465 invoked by uid 500); 23 Jun 2011 23:23:08 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 1379 invoked by uid 500); 23 Jun 2011 23:23:08 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 1369 invoked by uid 99); 23 Jun 2011 23:23:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jun 2011 23:23:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jun 2011 23:23:07 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 7DCC742C628 for ; Thu, 23 Jun 2011 23:22:47 +0000 (UTC) Date: Thu, 23 Jun 2011 23:22:47 +0000 (UTC) From: "Eli Collins (JIRA)" To: common-dev@hadoop.apache.org Message-ID: <87518231.34967.1308871367512.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (HADOOP-7424) Log an error if the topology script doesn't handle multiple args MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Log an error if the topology script doesn't handle multiple args ---------------------------------------------------------------- Key: HADOOP-7424 URL: https://issues.apache.org/jira/browse/HADOOP-7424 Project: Hadoop Common Issue Type: Improvement Reporter: Eli Collins ScriptBasedMapping#resolve currently warns and returns null if it passes n arguments to the topology script and gets back a different number of resolutions. This indicates a bug in the topology script (or it's input) and therefore should be an error. {code} // invalid number of entries returned by the script LOG.warn("Script " + scriptName + " returned " + Integer.toString(m.size()) + " values when " + Integer.toString(names.size()) + " were expected."); return null; {code} There's only one place in Hadoop (FSNamesystem init) where we pass multiple arguments to the topology script, and it only done for performance (to trigger resolution/caching of all the hosts in the includes file on startup). So currently a topology script that doesn't handle multiple arguments just means the initial cache population doesn't work. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira