Return-Path: X-Original-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-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 6834CDD6E for ; Fri, 2 Nov 2012 05:56:19 +0000 (UTC) Received: (qmail 14314 invoked by uid 500); 2 Nov 2012 05:56:18 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 14034 invoked by uid 500); 2 Nov 2012 05:56:16 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 13961 invoked by uid 99); 2 Nov 2012 05:56:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Nov 2012 05:56:15 +0000 Date: Fri, 2 Nov 2012 05:56:14 +0000 (UTC) From: "Ivan A. Veselovsky (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: <1845691623.59437.1351835774933.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (MAPREDUCE-4762) repair test org.apache.hadoop.mapreduce.security.token.TestDelegationTokenRenewal 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/MAPREDUCE-4762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ivan A. Veselovsky updated MAPREDUCE-4762: ------------------------------------------ Attachment: (was: MAPREDUCE-4762-trunk.patch) > repair test org.apache.hadoop.mapreduce.security.token.TestDelegationTokenRenewal > --------------------------------------------------------------------------------- > > Key: MAPREDUCE-4762 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-4762 > Project: Hadoop Map/Reduce > Issue Type: Improvement > Reporter: Ivan A. Veselovsky > Attachments: MAPREDUCE-4762-trunk.patch > > > The test org.apache.hadoop.mapreduce.security.token.TestDelegationTokenRenewal is @Ignor-ed. > Due to that several classes in package org.apache.hadoop.mapreduce.security.token have zero unit-test coverage. > The problem is that the test assumed that class org.apache.hadoop.mapreduce.security.token.TestDelegationTokenRenewal.Renewer is used as a custom implementation of the org.apache.hadoop.security.token.TokenRenewer service, but that did not happen, because this custom service implementation was not registered. > We solved this problem by using special classloader that is invoked to find the resource META-INF/services/org.apache.hadoop.security.token.TokenRenewer , and supplies some custom content for it. This way the custom service implementation gets instantiated. -- 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