From d00605f8f0214ed8e2304db8688e140f0a1d62d8 Mon Sep 17 00:00:00 2001 From: Arpit Agarwal Date: Fri, 28 Feb 2014 19:48:31 +0000 Subject: [PATCH] HADOOP-10285. Admin interface to swap callqueue at runtime. (Contributed by Chris Li) git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1573052 13f79535-47bb-0310-9956-ffa450edef68 --- .../hadoop-common/CHANGES.txt | 3 + .../dev-support/findbugsExcludeFile.xml | 4 + hadoop-common-project/hadoop-common/pom.xml | 1 + .../hadoop/ipc/RefreshCallQueueProtocol.java | 48 ++++++++++++ ...llQueueProtocolClientSideTranslatorPB.java | 74 +++++++++++++++++++ .../RefreshCallQueueProtocolPB.java | 37 ++++++++++ ...llQueueProtocolServerSideTranslatorPB.java | 55 ++++++++++++++ .../main/proto/RefreshCallQueueProtocol.proto | 52 +++++++++++++ .../apache/hadoop/hdfs/NameNodeProxies.java | 16 +++- .../hadoop/hdfs/server/namenode/NameNode.java | 3 + .../server/namenode/NameNodeRpcServer.java | 24 ++++++ .../server/protocol/NamenodeProtocols.java | 2 + .../apache/hadoop/hdfs/tools/DFSAdmin.java | 34 +++++++++ .../hadoop/hdfs/TestIsMethodSupported.java | 13 ++++ 14 files changed, 365 insertions(+), 1 deletion(-) create mode 100644 hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/RefreshCallQueueProtocol.java create mode 100644 hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/protocolPB/RefreshCallQueueProtocolClientSideTranslatorPB.java create mode 100644 hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/protocolPB/RefreshCallQueueProtocolPB.java create mode 100644 hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/protocolPB/RefreshCallQueueProtocolServerSideTranslatorPB.java create mode 100644 hadoop-common-project/hadoop-common/src/main/proto/RefreshCallQueueProtocol.proto diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index db5808d448..46ed927e03 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -314,6 +314,9 @@ Release 2.5.0 - UNRELEASED HADOOP-10278. Refactor to make CallQueue pluggable. (Chris Li via Arpit Agarwal) + HADOOP-10285. Admin interface to swap callqueue at runtime. (Chris Li via + Arpit Agarwal) + OPTIMIZATIONS BUG FIXES diff --git a/hadoop-common-project/hadoop-common/dev-support/findbugsExcludeFile.xml b/hadoop-common-project/hadoop-common/dev-support/findbugsExcludeFile.xml index 3e5661ea0d..24fded9ef6 100644 --- a/hadoop-common-project/hadoop-common/dev-support/findbugsExcludeFile.xml +++ b/hadoop-common-project/hadoop-common/dev-support/findbugsExcludeFile.xml @@ -301,6 +301,10 @@ + + + +