Hi, Did you run "testCloseOnIdle" test multiple times or just once? I ran it 15 times and it failed once. To me it looks like a racy test so I don't think this is a risk to the release but it'd be great if either Juhani or Mike could confirm that.
Regarding the MBean errors, those are errors which show up during normal unit tests because mbeans are being registered multiple times. While I'd like to get rid of the errors (file channel tests add UUID to component name for this purpose) it's not urgent. Brock On Mon, Nov 19, 2012 at 1:55 PM, Roshan Naik <[email protected]> wrote: > Test failure ... > > *<testcase time="4.546" > classname="org.apache.flume.sink.hdfs.TestHDFSEventSink" > name="testCloseOnIdle">* > <failure type="java.lang.AssertionError">java.lang.AssertionError > at org.junit.Assert.fail(Assert.java:92) > at org.junit.Assert.assertTrue(Assert.java:43) > at org.junit.Assert.assertTrue(Assert.java:54) > at > org.apache.flume.sink.hdfs.TestHDFSEventSink.testCloseOnIdle(TestHDFSEventSink.java:1036) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45) > > > > Also see the below errors in *test-output.txt files > > *1) in > surefire-reports/org.apache.flume.sink.hdfs.TestHDFSEventSink-output.txt* > > 2012-11-19 11:31:25,926 (main) [ERROR - > org.apache.flume.instrumentation.MonitoredCounterGroup.register(MonitoredCounterGroup.java:92)] > Failed to register monitored counter group for type: SINK, name: null > javax.management.InstanceAlreadyExistsException: > org.apache.flume.sink:type=null > at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453) > at > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484) > at > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963) > ... > > > 2012-11-19 11:31:25,951 (main) [ERROR - > org.apache.flume.instrumentation.MonitoredCounterGroup.register(MonitoredCounterGroup.java:92)] > Failed to register monitored counter group for type: SINK, name: null > javax.management.InstanceAlreadyExistsException: > org.apache.flume.sink:type=null > at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453) > at > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484) > at > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963) > ... > > *3) > in > surefire-reports/org.apache.flume.sink.hdfs.TestHDFSEventSinkOnMiniCluster-output.txt > * > > 2012-11-19 11:31:53,213 (main) [ERROR - > org.apache.flume.instrumentation.MonitoredCounterGroup.register(MonitoredCounterGroup.java:92)] > Failed to register monitored counter group for type: CHANNEL, name: > simpleHDFSTest-mem-chan > javax.management.InstanceAlreadyExistsException: > org.apache.flume.channel:type=simpleHDFSTest-mem-chan > at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453) > at > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484) > at > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:963) > at > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917) > at > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312) > at > com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482) > at > org.apache.flume.instrumentation.MonitoredCounterGroup.register(MonitoredCounterGroup.java:87) > at > org.apache.flume.instrumentation.MonitoredCounterGroup.start(MonitoredCounterGroup.java:67) > at > org.apache.flume.channel.MemoryChannel.start(MemoryChannel.java:327) > at > org.apache.flume.sink.hdfs.TestHDFSEventSinkOnMiniCluster.simpleHDFSGZipCompressedTest(TestHDFSEventSinkOnMiniCluster.java:178) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > ... > > [ERROR - > org.apache.flume.instrumentation.MonitoredCounterGroup.register(MonitoredCounterGroup.java:92)] > Failed to register monitored counter group for type: SINK, name: > simpleHDFSTest-hdfs-sink > javax.management.InstanceAlreadyExistsException: > org.apache.flume.sink:type=simpleHDFSTest-hdfs-sink > at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:453) > at > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1484) > at > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(Defaul -- Apache MRUnit - Unit testing MapReduce - http://incubator.apache.org/mrunit/
