hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ruby Stevenson <ruby...@gmail.com>
Subject The configuration loading behavior
Date Thu, 29 Sep 2011 00:45:24 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message