tez-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Siddharth Seth (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TEZ-1684) upgrade mockito to latest release
Date Tue, 21 Oct 2014 22:25:34 GMT

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

Siddharth Seth commented on TEZ-1684:
-------------------------------------

+1. mvn dependency:tree doesn't show any references to 1.9.5 with the patch applied. Feel
free to commit to 0.5.2 as well, if you think that this is a stable change, and gets rid of
the occasional errors. Was thinking 0.6.0 primarily because that gets built on jenkins every
day.

> upgrade mockito to latest release
> ---------------------------------
>
>                 Key: TEZ-1684
>                 URL: https://issues.apache.org/jira/browse/TEZ-1684
>             Project: Apache Tez
>          Issue Type: Bug
>            Reporter: Rajesh Balamohan
>         Attachments: TEZ-1684.1.patch
>
>
> Randomly (once in 1000 runs in my VM), I get the following exception.
> Exception in thread "DelayedContainerManager" java.lang.ClassCastException: java.util.LinkedList
cannot be cast to org.apache.hadoop.yarn.api.records.Priority
> 	at org.apache.tez.dag.app.rm.TezAMRMClientAsync$$EnhancerByMockitoWithCGLIB$$9c9a5aeb.getTopPriority(<generated>)
> 	at org.apache.tez.dag.app.rm.YarnTaskSchedulerService.assignReUsedContainerWithLocation(YarnTaskSchedulerService.java:1459)
> 	at org.apache.tez.dag.app.rm.YarnTaskSchedulerService.assignDelayedContainer(YarnTaskSchedulerService.java:660)
> 	at org.apache.tez.dag.app.rm.YarnTaskSchedulerService.access$700(YarnTaskSchedulerService.java:82)
> 	at org.apache.tez.dag.app.rm.YarnTaskSchedulerService$DelayedContainerManager.run(YarnTaskSchedulerService.java:1765)
> It appears to be a bug in mockito when using RETURNS_DEEP_STUBS in unit tests.  With
mockito 1.10.8 version, this issue isn't cropping up. Currently tez uses mockito 1.9.5.  Should
we migrate to 1.10.8?



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

Mime
View raw message