MAPREDUCE-5117. Changed MRClientProtocolPBClientImpl to be closeable and thus fix failures in renewal of HistoryServer's delegations tokens. Contributed by Siddharth Seth.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1463828 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e67e3ff05d
commit
38678cc3d9
@ -210,6 +210,10 @@ Release 2.0.4-beta - UNRELEASED
|
||||
MAPREDUCE-5008. Merger progress miscounts with respect to EOF_MARKER.
|
||||
(Sandy Ryza via tomwhite)
|
||||
|
||||
MAPREDUCE-5117. Changed MRClientProtocolPBClientImpl to be closeable and thus
|
||||
fix failures in renewal of HistoryServer's delegations tokens. (Siddharth
|
||||
Seth via vinodkv)
|
||||
|
||||
Release 2.0.3-alpha - 2013-02-06
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
@ -18,6 +18,7 @@
|
||||
|
||||
package org.apache.hadoop.mapreduce.v2.api.impl.pb.client;
|
||||
|
||||
import java.io.Closeable;
|
||||
import java.io.IOException;
|
||||
import java.net.InetSocketAddress;
|
||||
|
||||
@ -101,7 +102,8 @@
|
||||
|
||||
import com.google.protobuf.ServiceException;
|
||||
|
||||
public class MRClientProtocolPBClientImpl implements MRClientProtocol {
|
||||
public class MRClientProtocolPBClientImpl implements MRClientProtocol,
|
||||
Closeable {
|
||||
|
||||
protected MRClientProtocolPB proxy;
|
||||
|
||||
@ -117,6 +119,13 @@ public InetSocketAddress getConnectAddress() {
|
||||
return RPC.getServerAddress(proxy);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() {
|
||||
if (this.proxy != null) {
|
||||
RPC.stopProxy(this.proxy);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public GetJobReportResponse getJobReport(GetJobReportRequest request)
|
||||
throws YarnRemoteException {
|
||||
|
Loading…
x
Reference in New Issue
Block a user