edgent-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rui Shen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (EDGENT-310) KafkaStreamsTestManual.testSimple() fails with no local zk or kafka servers
Date Fri, 11 Nov 2016 03:31:59 GMT

    [ https://issues.apache.org/jira/browse/EDGENT-310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15655997#comment-15655997
] 

Rui Shen commented on EDGENT-310:
---------------------------------

Hi Dale,

I have tried your gradle command and I still got the errors. All positive test cases failed
in KafkaStreamsTestManual - only negative tests passed. 

I see your closed this defect - does it mean you can reproduce the problem I have? Or it means
that only local kafka can be supported?

If this is Edgent limitation to support remote kafka, I will have to figure out an approach
to install a local kafka to run my tests. If you could prove the tests can pass with remote
kafka on your side, the cause might be some my local environment issue.  

===================================================================
:connectors:kafka:test
:connectors:kafka testing ...

org.apache.edgent.test.connectors.kafka.KafkaStreamsTestManual > testSimple FAILED
    java.lang.AssertionError:  contents:[]
        at org.junit.Assert.fail(Assert.java:93)
        at org.junit.Assert.assertTrue(Assert.java:43)
        at org.apache.edgent.test.topology.TopologyAbstractTest.completeAndValidate(TopologyAbstractTest.java:98)
        at org.apache.edgent.test.connectors.common.ConnectorTestBase.completeAndValidate(ConnectorTestBase.java:104)
        at org.apache.edgent.test.connectors.common.ConnectorTestBase.completeAndValidate(ConnectorTestBase.java:93)
        at org.apache.edgent.test.connectors.kafka.KafkaStreamsTestManual.testSimple(KafkaStreamsTestManual.java:133)

org.apache.edgent.test.connectors.kafka.KafkaStreamsTestManual > testPubSubBytes FAILED
    java.lang.AssertionError:  contents:[]
        at org.junit.Assert.fail(Assert.java:93)
        at org.junit.Assert.assertTrue(Assert.java:43)
        at org.apache.edgent.test.topology.TopologyAbstractTest.completeAndValidate(TopologyAbstractTest.java:98)
        at org.apache.edgent.test.connectors.common.ConnectorTestBase.completeAndValidate(ConnectorTestBase.java:104)
        at org.apache.edgent.test.connectors.common.ConnectorTestBase.completeAndValidate(ConnectorTestBase.java:93)
        at org.apache.edgent.test.connectors.kafka.KafkaStreamsTestManual.testPubSubBytes(KafkaStreamsTestManual.java:224)

org.apache.edgent.test.connectors.kafka.KafkaStreamsTestManual > testMultiPub FAILED
    java.lang.RuntimeException: java.util.concurrent.TimeoutException
        at org.apache.edgent.runtime.etiao.Executable.invokeAction(Executable.java:225)
        at org.apache.edgent.runtime.etiao.Executable.close(Executable.java:191)
        at org.apache.edgent.runtime.etiao.EtiaoJob.stateChange(EtiaoJob.java:116)
        at org.apache.edgent.topology.spi.tester.AbstractTester.complete(AbstractTester.java:56)
        at org.apache.edgent.test.topology.TopologyAbstractTest.complete(TopologyAbstractTest.java:72)
        at org.apache.edgent.test.topology.TopologyAbstractTest.completeAndValidate(TopologyAbstractTest.java:96)
        at org.apache.edgent.test.connectors.common.ConnectorTestBase.completeAndValidate(ConnectorTestBase.java:104)
        at org.apache.edgent.test.connectors.kafka.KafkaStreamsTestManual.testMultiPub(KafkaStreamsTestManual.java:261)

        Caused by:
        java.util.concurrent.TimeoutException
            at org.apache.edgent.runtime.etiao.Executable.invokeAction(Executable.java:225)
            ... 7 more

org.apache.edgent.test.connectors.kafka.KafkaStreamsTestManual > testWithKey FAILED
    java.lang.AssertionError:  contents:[]
        at org.junit.Assert.fail(Assert.java:93)
        at org.junit.Assert.assertTrue(Assert.java:43)
        at org.apache.edgent.test.topology.TopologyAbstractTest.completeAndValidate(TopologyAbstractTest.java:98)
        at org.apache.edgent.test.connectors.common.ConnectorTestBase.completeAndValidate(ConnectorTestBase.java:104)
        at org.apache.edgent.test.connectors.common.ConnectorTestBase.completeAndValidate(ConnectorTestBase.java:93)
        at org.apache.edgent.test.connectors.kafka.KafkaStreamsTestManual.testWithKey(KafkaStreamsTestManual.java:180)

Failed testrun results: /home/ilovepumpkin/git/incubator-edgent/connectors/kafka/build/test-results/test/TEST-org.apache.edgent.test.connectors.kafka.KafkaStreamsTestManual.xml

8 tests completed, 4 failed
:connectors:kafka:test FAILED
:connectors:kafka:testSummaryFinalizer
:connectors:kafka 53.490sec FAILURE (8 tests, 4 failures, 0 skipped)


> KafkaStreamsTestManual.testSimple() fails with no local zk or kafka servers
> ---------------------------------------------------------------------------
>
>                 Key: EDGENT-310
>                 URL: https://issues.apache.org/jira/browse/EDGENT-310
>             Project: Edgent
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: Apache Edgent 1.0.0
>         Environment: kafka_2.11-0.10.1.0
>            Reporter: Rui Shen
>
> I have set up a kafka on local and a remote machine following the quick start guide http://kafka.apache.org/quickstart.
And I pulled the latest code of the branch "release1.0.0". I tried to run KafkaStreamsTestManual.testSimple(),
but found it works with local kafka but fails with the remote kafka (the error shown as below
). I have tested my remote kafka with my local kafka console client and the SimpleSubscriberApp.java
so I am sure that it works. And I even tried to start local kafka consumer console client
during testSimple() is running, I can get the messages ('Hello' and 'Are you there?') from
the console. So I am suspecting that there is something wrong with Edgent Tester to handle
this test case. 
> ================================
> java.lang.AssertionError:  contents:[]
> 	at org.junit.Assert.fail(Assert.java:88)
> 	at org.junit.Assert.assertTrue(Assert.java:41)
> 	at org.apache.edgent.test.topology.TopologyAbstractTest.completeAndValidate(TopologyAbstractTest.java:98)
> 	at org.apache.edgent.test.connectors.common.ConnectorTestBase.completeAndValidate(ConnectorTestBase.java:104)
> 	at org.apache.edgent.test.connectors.common.ConnectorTestBase.completeAndValidate(ConnectorTestBase.java:93)
> 	at org.apache.edgent.test.connectors.kafka.KafkaStreamsTestManual.testSimple(KafkaStreamsTestManual.java:133)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:498)
> 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
> 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
> 	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> 	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
> 	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
> 	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
> 	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
> 	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message