hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: conf.Configuration: java.io.IOException: config(config)
Date Thu, 19 Nov 2009 13:29:12 GMT
Rekha Joshi wrote:
> Hi Sonal,
> AFAIK,this exception mostly has no impact other than to indicate object creation.I agree
Hadoop configuration class can be improved to handle it.

>  if (LOG.isDebugEnabled()) {
>       LOG.debug(StringUtils.stringifyException
>                 (new IOException("config(config)")));
>     }
> I am bafflled by this block of code. Why is an IOException being thrown if
> the log level is set to DEBUG ? It would be great if someone could shed some
> light on this.

This is covered under

It's clearly there to help debug obscure configuration constructor 
events. What may be best is to move it to its own log (something related 
to constructors?) so that it only comes on if you ask for an explicit log.

View raw message