hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marta Kuczora (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-14960) Improve the stability of TestNotificationListener
Date Fri, 28 Oct 2016 10:56:59 GMT

     [ https://issues.apache.org/jira/browse/HIVE-14960?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Marta Kuczora updated HIVE-14960:
---------------------------------
    Attachment:     (was: HIVE-14960.patch)

> 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.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)

Mime
View raw message