Return-Path: X-Original-To: apmail-tez-issues-archive@minotaur.apache.org Delivered-To: apmail-tez-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7BBB9173A5 for ; Wed, 22 Oct 2014 22:21:34 +0000 (UTC) Received: (qmail 3174 invoked by uid 500); 22 Oct 2014 22:21:34 -0000 Delivered-To: apmail-tez-issues-archive@tez.apache.org Received: (qmail 2975 invoked by uid 500); 22 Oct 2014 22:21:34 -0000 Mailing-List: contact issues-help@tez.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tez.apache.org Delivered-To: mailing list issues@tez.apache.org Received: (qmail 2803 invoked by uid 99); 22 Oct 2014 22:21:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Oct 2014 22:21:34 +0000 Date: Wed, 22 Oct 2014 22:21:34 +0000 (UTC) From: "Rajesh Balamohan (JIRA)" To: issues@tez.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (TEZ-1684) upgrade mockito to latest release MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TEZ-1684?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rajesh Balamohan resolved TEZ-1684. ----------------------------------- Resolution: Fixed Fix Version/s: 0.5.2 Target Version/s: (was: 0.6.0) Hadoop Flags: Reviewed Thanks @sseth. Committed to master and branch-0.5 > 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 > Assignee: Rajesh Balamohan > Fix For: 0.5.2 > > 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() > 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)