Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-2486

TestExecSource fails on some environments

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.0.1
    • Fix Version/s: 1.6.0
    • Component/s: None
    • Labels:

      Description

      This seems to occur on slow platforms (e.g. Travis). A workaround already existed for Windows.

      https://travis-ci.org/Stratio/flume/jobs/36817397#L6143

      testShellCommandSimple(org.apache.flume.source.TestExecSource) Time elapsed: 1254 sec <<< FAILURE!

      java.lang.AssertionError: array lengths differed, expected.length=5 actual.length=0

      at org.junit.Assert.fail(Assert.java:93)

      at org.junit.internal.ComparisonCriteria.assertArraysAreSameLength(ComparisonCriteria.java:70)

      at org.junit.internal.ComparisonCriteria.arrayEquals(ComparisonCriteria.java:34)

      at org.junit.Assert.internalArrayEquals(Assert.java:416)

      at org.junit.Assert.assertArrayEquals(Assert.java:168)

      at org.junit.Assert.assertArrayEquals(Assert.java:185)

      at org.apache.flume.source.TestExecSource.runTestShellCmdHelper(TestExecSource.java:360)

      at org.apache.flume.source.TestExecSource.testShellCommandSimple(TestExecSource.java:152)

      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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)

      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)

      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)

      at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)

      at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)

      at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)

      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.JUnit4Provider.execute(JUnit4Provider.java:252)

      at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)

      at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)

      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.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)

      at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)

      at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)

      at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)

      at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)

      1. FLUME-2486-0.patch
        2 kB
        Santiago M. Mola

        Activity

        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Flume-trunk-hbase-98 #38 (See https://builds.apache.org/job/Flume-trunk-hbase-98/38/)
        FLUME-2486. TestExecSource fails on some environments (hshreedharan: http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=f99adaabcf9d6c6b8f4c8fe5895fe478c8307694)

        • flume-ng-core/src/test/java/org/apache/flume/source/TestExecSource.java
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Flume-trunk-hbase-98 #38 (See https://builds.apache.org/job/Flume-trunk-hbase-98/38/ ) FLUME-2486 . TestExecSource fails on some environments (hshreedharan: http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=f99adaabcf9d6c6b8f4c8fe5895fe478c8307694 ) flume-ng-core/src/test/java/org/apache/flume/source/TestExecSource.java
        Hide
        hudson Hudson added a comment -

        UNSTABLE: Integrated in flume-trunk #679 (See https://builds.apache.org/job/flume-trunk/679/)
        FLUME-2486. TestExecSource fails on some environments (hshreedharan: http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=f99adaabcf9d6c6b8f4c8fe5895fe478c8307694)

        • flume-ng-core/src/test/java/org/apache/flume/source/TestExecSource.java
        Show
        hudson Hudson added a comment - UNSTABLE: Integrated in flume-trunk #679 (See https://builds.apache.org/job/flume-trunk/679/ ) FLUME-2486 . TestExecSource fails on some environments (hshreedharan: http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=f99adaabcf9d6c6b8f4c8fe5895fe478c8307694 ) flume-ng-core/src/test/java/org/apache/flume/source/TestExecSource.java
        Hide
        hshreedharan Hari Shreedharan added a comment -

        Committed! Thanks Santiago!

        Show
        hshreedharan Hari Shreedharan added a comment - Committed! Thanks Santiago!
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 312fbb2b1f2ef81ceb8e3b8efe3cc16c5eb3ea99 in flume's branch refs/heads/flume-1.6 from Hari Shreedharan
        [ https://git-wip-us.apache.org/repos/asf?p=flume.git;h=312fbb2 ]

        FLUME-2486. TestExecSource fails on some environments

        (Santiago M. Mola via Hari)

        Show
        jira-bot ASF subversion and git services added a comment - Commit 312fbb2b1f2ef81ceb8e3b8efe3cc16c5eb3ea99 in flume's branch refs/heads/flume-1.6 from Hari Shreedharan [ https://git-wip-us.apache.org/repos/asf?p=flume.git;h=312fbb2 ] FLUME-2486 . TestExecSource fails on some environments (Santiago M. Mola via Hari)
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit f99adaabcf9d6c6b8f4c8fe5895fe478c8307694 in flume's branch refs/heads/trunk from Hari Shreedharan
        [ https://git-wip-us.apache.org/repos/asf?p=flume.git;h=f99adaa ]

        FLUME-2486. TestExecSource fails on some environments

        (Santiago M. Mola via Hari)

        Show
        jira-bot ASF subversion and git services added a comment - Commit f99adaabcf9d6c6b8f4c8fe5895fe478c8307694 in flume's branch refs/heads/trunk from Hari Shreedharan [ https://git-wip-us.apache.org/repos/asf?p=flume.git;h=f99adaa ] FLUME-2486 . TestExecSource fails on some environments (Santiago M. Mola via Hari)

          People

          • Assignee:
            smolav Santiago M. Mola
            Reporter:
            smolav Santiago M. Mola
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development