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

jun aoki commented on AMBARI-7011:
----------------------------------

In my environment (Ubuntu Desktop), I am not able to reproduce it.
I tried followings from ambari-server directory
mvn clean install 
mvn test
mvn test -Dtest=NagiosPropertyProviderTest
with deleting ~/.m2/repository/ ... / ambari-server 

My best guess (really guess) is [CLUSTER_ALERTS variable is static | 
https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/java/org/apache/ambari/server/controller/nagios/NagiosPropertyProvider.java#L93
 ] and somehow concurrent access occurs ? (but I have not found a clue the test 
runs in parallel) 

Can anyone provide what environment the CI machine is? is it redhat? bitness? 
java version? is it open JDK or Oracle?
 

> ambari trunk commit build fails due to NagiosPropertyProviderTest
> -----------------------------------------------------------------
>
>                 Key: AMBARI-7011
>                 URL: https://issues.apache.org/jira/browse/AMBARI-7011
>             Project: Ambari
>          Issue Type: Bug
>          Components: build
>            Reporter: jun aoki
>
> [Ambari trunk commit build fails | 
> https://builds.apache.org/job/Ambari-trunk-Commit/15/testReport/org.apache.ambari.server.controller.nagios/NagiosPropertyProviderTest/testNagiosServiceAlerts/
>  ]
>  [line 267 in 
> NagiosPropertyProviderTest.java|https://github.com/apache/ambari/blob/trunk/ambari-server/src/test/java/org/apache/ambari/server/controller/nagios/NagiosPropertyProviderTest.java#L267]
>  is expecting 3 details should be returned but 2 is returned.
> The test  reads a mock data [nagios_alerts.txt | 
> https://github.com/apache/ambari/blob/trunk/ambari-server/src/test/resources/nagios_alerts.txt
>  ] and filter by "c1" (="c6401") and "HBASE" and thus 3 details should be 
> returned, but 2 is returned, pretty consistently on builds.a.o, and 
> occasionally on my linux environment.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to