atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hemanth Yamijala (JIRA)" <>
Subject [jira] [Updated] (ATLAS-297) KafkaNotificationTest.testSendReceiveMessage fails when atlas-server is running on the same machine
Date Fri, 13 Nov 2015 12:07:10 GMT


Hemanth Yamijala updated ATLAS-297:
    Attachment: ATLAS-297-1.patch

Here is a very dumbed down version that addresses the original issue of the JIRA, and doesn't
regress integration tests.

Considering that this JIRA is more related to developers than production runs, I am proposing
a hugely simplified fix. Today we have two sources of property files:  The typesystem module
has an and the distro module has another one. When the product is packaged
and installed, it uses the distro module's When the product runs tests
- it uses the typesystem module's ones. The fix is simply to specify different port numbers
in the two properties so that they don't conflict - thereby eliminating the complexity of
ephemeral ports etc.

On a more general cleanup note: we should probably make the environment specific properties
more explicit. So, rather than have different property files, we could have a properties template
and have environment specific values and substitute them on need. I guess we could do this
using profile builds in maven. I am OK to do this as part of this patch, or have this committed
(as it does address the raised issue) and have a new JIRA to work on that clean up. Happy
to get advise on what others feel.

Please note this patch does not address the issue with integration tests running alongside
a local atlas server instance. Basically, mvn package will run fine alongside a local atlas
server instance with this fix.

Please let me know what you think.

> KafkaNotificationTest.testSendReceiveMessage fails when atlas-server is running on the
same machine 
> ----------------------------------------------------------------------------------------------------
>                 Key: ATLAS-297
>                 URL:
>             Project: Atlas
>          Issue Type: Bug
>         Environment: Dev environment 
>            Reporter: Hemanth Yamijala
>            Assignee: Hemanth Yamijala
>            Priority: Minor
>             Fix For: trunk
>         Attachments: ATLAS-297-1.patch, ATLAS-297.patch
> Start the atlas-server on local machine. Then execute mvn -Dtest=KafkaNotificationTest
-DfailIfNoTests=false test
> Get the following stack trace and test failure:
> Running org.apache.atlas.kafka.KafkaNotificationTest
> Tests run: 3, Failures: 1, Errors: 0, Skipped: 2, Time elapsed: 1.262 sec <<<
FAILURE! - in org.apache.atlas.kafka.KafkaNotificationTest
> setUp(org.apache.atlas.kafka.KafkaNotificationTest)  Time elapsed: 0.88 sec  <<<
> org.apache.atlas.AtlasException: Failed to start embedded kafka
> 	at Method)
> 	at
> 	at
> 	at
> 	at
> 	at
> 	at org.apache.zookeeper.server.NIOServerCnxnFactory.configure(
> 	at org.apache.zookeeper.server.ServerCnxnFactory.createFactory(
> 	at org.apache.atlas.kafka.KafkaNotification.startZk(
> 	at org.apache.atlas.kafka.KafkaNotification.start(
> 	at org.apache.atlas.kafka.KafkaNotificationTest.setUp(

This message was sent by Atlassian JIRA

View raw message