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

Marta Kuczora commented on HIVE-14960:
--------------------------------------

The failing tests are not related to the changes in the patch, since it only 
affects the TestNotificationListener test.

> Improve the stability of TestNotificationListener
> -------------------------------------------------
>
>                 Key: HIVE-14960
>                 URL: https://issues.apache.org/jira/browse/HIVE-14960
>             Project: Hive
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 2.1.0
>            Reporter: Marta Kuczora
>            Assignee: Marta Kuczora
>            Priority: Minor
>         Attachments: HIVE-14960.2.patch, HIVE-14960.patch
>
>
> The TestNotificationListener.testAMQListener test case fails occasionally 
> with the following error:
> {noformat}
> Error Message
> expected:<[CREATE_DATABASE, CREATE_TABLE, ADD_PARTITION, ALTER_PARTITION, 
> DROP_PARTITION, ALTER_TABLE, DROP_TABLE, DROP_DATABASE]> but 
> was:<[CREATE_DATABASE, CREATE_TABLE, ADD_PARTITION, ALTER_PARTITION, 
> DROP_PARTITION, ALTER_TABLE, DROP_TABLE]>
> Stacktrace
> java.lang.AssertionError: expected:<[CREATE_DATABASE, CREATE_TABLE, 
> ADD_PARTITION, ALTER_PARTITION, DROP_PARTITION, ALTER_TABLE, DROP_TABLE, 
> DROP_DATABASE]> but was:<[CREATE_DATABASE, CREATE_TABLE, ADD_PARTITION, 
> ALTER_PARTITION, DROP_PARTITION, ALTER_TABLE, DROP_TABLE]>
>       at org.junit.Assert.fail(Assert.java:88)
>       at org.junit.Assert.failNotEquals(Assert.java:743)
>       at org.junit.Assert.assertEquals(Assert.java:118)
>       at org.junit.Assert.assertEquals(Assert.java:144)
>       at 
> org.apache.hive.hcatalog.listener.TestNotificationListener.tearDown(TestNotificationListener.java:114)
> {noformat}
> This error can happen if the testAMQListener method is completed before the 
> last DROP_TABLE message got processed and put to the actualMessages list by 
> the onMessage method. This can happen if there is a small delay in receiving 
> the message, since the message receiving is not synchronized with the 
> testAMQListener method.



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

Reply via email to