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 E246973F8 for ; Thu, 29 Sep 2011 00:45:54 +0000 (UTC) Received: (qmail 75533 invoked by uid 500); 29 Sep 2011 00:45:53 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 75460 invoked by uid 500); 29 Sep 2011 00:45:53 -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 75452 invoked by uid 99); 29 Sep 2011 00:45:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Sep 2011 00:45:53 +0000 X-ASF-Spam-Status: No, hits=1.6 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ruby185@gmail.com designates 209.85.212.48 as permitted sender) Received: from [209.85.212.48] (HELO mail-vw0-f48.google.com) (209.85.212.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Sep 2011 00:45:45 +0000 Received: by vws7 with SMTP id 7so91033vws.35 for ; Wed, 28 Sep 2011 17:45:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=7bels55WAl/ZAAd2avc3JJPHobUsddWWYqPFb9rxoxM=; b=jgDeLwfPtmPQuW/cwvH8qtIWFeZQu/D+1r5zB77DkGYOv63rtjOI4bP/+hy7zqZ6n1 hOHi1ag84AC5i77FrP/dTw1JBqcN05x+615rNHoG9Y7Wne+s3O/vNt/5hFM6VJUSgwJB a5zWjImq2HBX7YvDMu/qQ1f0r9ZH6rfVCZ+hc= MIME-Version: 1.0 Received: by 10.52.175.133 with SMTP id ca5mr8793698vdc.245.1317257124824; Wed, 28 Sep 2011 17:45:24 -0700 (PDT) Received: by 10.52.182.169 with HTTP; Wed, 28 Sep 2011 17:45:24 -0700 (PDT) Date: Wed, 28 Sep 2011 20:45:24 -0400 Message-ID: Subject: The configuration loading behavior From: Ruby Stevenson To: common-dev@hadoop.apache.org Content-Type: multipart/alternative; boundary=bcaec5014c6b00cfe304ae09d3b6 X-Virus-Checked: Checked by ClamAV on apache.org --bcaec5014c6b00cfe304ae09d3b6 Content-Type: text/plain; charset=ISO-8859-1 All - Can someone please help me to understand this (org.apache.hadoop.conf.Configuration, 20.204). The following code reads like an exception will be thrown if debug is on, no matter what, why? /** A new configuration where the behavior of reading from the default * resources can be turned off. * * If the parameter {@code loadDefaults} is false, the new instance * will not load resources from the default files. * @param loadDefaults specifies whether to load from the default files */ public Configuration(boolean loadDefaults) { this.loadDefaults = loadDefaults; * if (LOG.isDebugEnabled()) { LOG.debug(StringUtils.stringifyException(new IOException("config()"))); }* synchronized(Configuration.class) { REGISTRY.put(this, null); } this.storeResource = false; } Thanks Ruby --bcaec5014c6b00cfe304ae09d3b6--