From 15e3c010ec3b80d7815a5f87a1f14c65b1bf5ddf Mon Sep 17 00:00:00 2001 From: Andrew Wang Date: Thu, 12 Sep 2013 20:06:15 +0000 Subject: [PATCH] HADOOP-9958. Add old constructor back to DelegationTokenInformation to unbreak downstream builds. (Andrew Wang) git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1522709 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../delegation/AbstractDelegationTokenSecretManager.java | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 06a3f3f3faa..030e0ba94ff 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -184,6 +184,9 @@ Release 2.1.1-beta - UNRELEASED HADOOP-9932. Improper synchronization in RetryCache. (kihwal) + HADOOP-9958. Add old constructor back to DelegationTokenInformation to + unbreak downstream builds. (Andrew Wang) + Release 2.1.0-beta - 2013-08-22 INCOMPATIBLE CHANGES diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenSecretManager.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenSecretManager.java index a63e0628288..708700b9623 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenSecretManager.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenSecretManager.java @@ -444,6 +444,10 @@ extends AbstractDelegationTokenIdentifier> byte[] password; String trackingId; + public DelegationTokenInformation(long renewDate, byte[] password) { + this(renewDate, password, null); + } + public DelegationTokenInformation(long renewDate, byte[] password, String trackingId) { this.renewDate = renewDate;