Uploaded image for project: 'MRUnit'
  1. MRUnit
  2. MRUNIT-207

Test failure on trunk-hadoop1 branch

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • None

    Description

      I am seeing the following test failure on the trunk-hadoop1 branch.

      Test set: org.apache.hadoop.mrunit.TestMultipleInputsMapReduceDriver
      -------------------------------------------------------------------------------
      Tests run: 26, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.296 sec <<< FAILURE!
      testWithCounterAndEnumCounterMissing(org.apache.hadoop.mrunit.TestMultipleInputsMapReduceDriver)  Time elapsed: 0.013 sec  <<< FAILURE!
      java.lang.AssertionError: 
      Expected: (exception with message a string containing "2 Error(s): (Actual counter (\"org.apache.hadoop.mrunit.TestMapDriver$MapperWithCounters$Counters\",\"X\") was not found in expected counters, Actual counter (\"org.apache.hadoop.mrunit.TestMultipleInputsMapReduceDriver$TokenMapperWithCounters$Counters\",\"Y\") was not found in expected counters" and an instance of java.lang.AssertionError)
           got: <java.lang.AssertionError: 2 Error(s): (Actual counter ("org.apache.hadoop.mrunit.TestMultipleInputsMapReduceDriver$TokenMapperWithCounters$Counters","Y") was not found in expected counters, Actual counter ("org.apache.hadoop.mrunit.TestMapDriver$MapperWithCounters$Counters","X") was not found in expected counters)>
      
        at org.junit.Assert.assertThat(Assert.java:780)
        at org.junit.Assert.assertThat(Assert.java:738)
        at org.junit.rules.ExpectedException$ExpectedExceptionStatement.evaluate(ExpectedException.java:114)
        at org.junit.rules.RunRules.evaluate(RunRules.java:18)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
        at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:119)
        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:101)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)
        at com.sun.proxy.$Proxy0.invoke(Unknown Source)
        at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150)
        at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)
      

      Attachments

        1. MRUNIT-207.patch
          1 kB
          Jason Tedor

        Activity

          People

            jasonetedor Jason Tedor
            brocknoland Brock Noland
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: