[
https://issues.apache.org/jira/browse/HCATALOG-498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13451416#comment-13451416
]
Travis Crawford commented on HCATALOG-498:
------------------------------------------
I updated the test to compare the actual expected events rather than just a
count and we see:
{code}
java.lang.AssertionError:
java.lang.AssertionError:
Expected :[HCAT_ADD_DATABASE, HCAT_ADD_TABLE, HCAT_ADD_PARTITION,
HCAT_PARTITION_DONE, HCAT_DROP_PARTITION, HCAT_DROP_TABLE, HCAT_DROP_DATABASE]
Actual :[HCAT_ADD_DATABASE, HCAT_ADD_TABLE, HCAT_ADD_PARTITION,
HCAT_PARTITION_DONE, HCAT_DROP_DATABASE]
{code}
The two events not being received are: HCAT_DROP_PARTITION, HCAT_DROP_TABLE
{{NotificationListener}} has this comment in the two methods that produce these
events, and looking in the logs I do see these exceptions.
{code}
// Datanucleus throws NPE when we try to serialize a partition object
// retrieved from metastore. To workaround that we reset following objects
{code}
> TestNotificationListener failing in trunk
> -----------------------------------------
>
> Key: HCATALOG-498
> URL: https://issues.apache.org/jira/browse/HCATALOG-498
> Project: HCatalog
> Issue Type: Bug
> Reporter: Travis Crawford
> Assignee: Travis Crawford
>
> TestNotificationListener is failing in trunk with the following error:
> From
> [https://builds.apache.org/job/Hcatalog-trunk-build/262/testReport/org.apache.hcatalog.listener/TestNotificationListener/testAMQListener/]
> {code}
> junit.framework.AssertionFailedError: expected:<7> but was:<5>
> at
> org.apache.hcatalog.listener.TestNotificationListener.tearDown(TestNotificationListener.java:108)
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira