Return-Path: X-Original-To: apmail-hadoop-mapreduce-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0E439E2C8 for ; Fri, 7 Dec 2012 23:57:24 +0000 (UTC) Received: (qmail 34368 invoked by uid 500); 7 Dec 2012 23:57:23 -0000 Delivered-To: apmail-hadoop-mapreduce-dev-archive@hadoop.apache.org Received: (qmail 34172 invoked by uid 500); 7 Dec 2012 23:57:22 -0000 Mailing-List: contact mapreduce-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-dev@hadoop.apache.org Delivered-To: mailing list mapreduce-dev@hadoop.apache.org Received: (qmail 33858 invoked by uid 99); 7 Dec 2012 23:57:22 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Dec 2012 23:57:22 +0000 Date: Fri, 7 Dec 2012 23:57:22 +0000 (UTC) From: "Karthik Kambatla (JIRA)" To: mapreduce-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (MAPREDUCE-4862) Inconsistent synchronization in yarn.server.rm.security.DelegationTokenRenewal MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Karthik Kambatla created MAPREDUCE-4862: ------------------------------------------- Summary: Inconsistent synchronization in yarn.server.rm.security.DelegationTokenRenewal Key: MAPREDUCE-4862 URL: https://issues.apache.org/jira/browse/MAPREDUCE-4862 Project: Hadoop Map/Reduce Issue Type: Bug Components: security Affects Versions: 1.1.1 Reporter: Karthik Kambatla Assignee: Karthik Kambatla mapreduce.security.token.DelegationTokenRenewal synchronizes on removeDelegationToken, but fails to synchronize on addToken, and renewing tokens in run(). This inconsistency is exposed by frequent failures of TestDelegationTokenRenewal: {noformat} Error Message renew wasn't called as many times as expected expected:<4> but was:<5> Stacktrace junit.framework.AssertionFailedError: renew wasn't called as many times as expected expected:<4> but was:<5> at org.apache.hadoop.mapreduce.security.token.TestDelegationTokenRenewal.testDTRenewal(TestDelegationTokenRenewal.java:317) at org.apache.hadoop.mapreduce.security.token.TestDelegationTokenRenewal.testDTRenewalAfterClose(TestDelegationTokenRenewal.java:338) {noformat} -- 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