Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
HBase >> mail # dev >> workaround to remove a warning stack in the test logs

Copy link to this message
workaround to remove a warning stack in the test logs

We have this well known stack everytime we launch a minicluster:

12/04/05 16:56:07 WARN util.MBeans:
javax.management.InstanceAlreadyExistsException: MXBean already
registered with name
at com.sun.jmx.mbeanserver.MXBeanLookup.addReference(MXBeanLookup.java:120)
at com.sun.jmx.mbeanserver.MXBeanSupport.register(MXBeanSupport.java:143)
at com.sun.jmx.mbeanserver.MBeanSupport.preRegister2(MBeanSupport.java:183)
That's HBASE-4709.

It could be removed by adding this in HBaseTestingUtility:

  static {

This would hide all the warnings from this class, which is acceptable imho.

Is it an issue for anyone if I do it (in trunk) ?

The other solution is to understand the problem and fix it, but it could
take me hours, I don't really have them for this :-)

Stack 2012-11-26, 17:56
yuzhihong@... 2012-11-23, 18:52