You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by in...@apache.org on 2017/03/28 21:25:58 UTC
[35/50] [abbrv] hadoop git commit: YARN-6379. Remove unused argument
in ClientRMService. Contributed by Kai Sasaki.
YARN-6379. Remove unused argument in ClientRMService. Contributed by Kai Sasaki.
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/b63ae854
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/b63ae854
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/b63ae854
Branch: refs/heads/HDFS-10467
Commit: b63ae854f9f5a900ca860dcb26c30785af32bde0
Parents: e7b7c96
Author: Akira Ajisaka <aa...@apache.org>
Authored: Mon Mar 27 11:23:41 2017 +0900
Committer: Akira Ajisaka <aa...@apache.org>
Committed: Mon Mar 27 11:23:41 2017 +0900
----------------------------------------------------------------------
.../yarn/server/resourcemanager/ClientRMService.java | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/b63ae854/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ClientRMService.java
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ClientRMService.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ClientRMService.java
index 6130b33..8b28d65 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ClientRMService.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ClientRMService.java
@@ -1204,7 +1204,7 @@ public class ClientRMService extends AbstractService implements
@Override
public GetNewReservationResponse getNewReservation(
GetNewReservationRequest request) throws YarnException, IOException {
- checkReservationSystem(AuditConstants.CREATE_NEW_RESERVATION_REQUEST);
+ checkReservationSystem();
GetNewReservationResponse response =
recordFactory.newRecordInstance(GetNewReservationResponse.class);
@@ -1218,7 +1218,7 @@ public class ClientRMService extends AbstractService implements
public ReservationSubmissionResponse submitReservation(
ReservationSubmissionRequest request) throws YarnException, IOException {
// Check if reservation system is enabled
- checkReservationSystem(AuditConstants.SUBMIT_RESERVATION_REQUEST);
+ checkReservationSystem();
ReservationSubmissionResponse response =
recordFactory.newRecordInstance(ReservationSubmissionResponse.class);
ReservationId reservationId = request.getReservationId();
@@ -1277,7 +1277,7 @@ public class ClientRMService extends AbstractService implements
public ReservationUpdateResponse updateReservation(
ReservationUpdateRequest request) throws YarnException, IOException {
// Check if reservation system is enabled
- checkReservationSystem(AuditConstants.UPDATE_RESERVATION_REQUEST);
+ checkReservationSystem();
ReservationUpdateResponse response =
recordFactory.newRecordInstance(ReservationUpdateResponse.class);
// Validate the input
@@ -1316,7 +1316,7 @@ public class ClientRMService extends AbstractService implements
public ReservationDeleteResponse deleteReservation(
ReservationDeleteRequest request) throws YarnException, IOException {
// Check if reservation system is enabled
- checkReservationSystem(AuditConstants.DELETE_RESERVATION_REQUEST);
+ checkReservationSystem();
ReservationDeleteResponse response =
recordFactory.newRecordInstance(ReservationDeleteResponse.class);
// Validate the input
@@ -1355,7 +1355,7 @@ public class ClientRMService extends AbstractService implements
public ReservationListResponse listReservations(
ReservationListRequest requestInfo) throws YarnException, IOException {
// Check if reservation system is enabled
- checkReservationSystem(AuditConstants.LIST_RESERVATION_REQUEST);
+ checkReservationSystem();
ReservationListResponse response =
recordFactory.newRecordInstance(ReservationListResponse.class);
@@ -1418,7 +1418,7 @@ public class ClientRMService extends AbstractService implements
labelsMgr.getClusterNodeLabels());
}
- private void checkReservationSystem(String auditConstant)
+ private void checkReservationSystem()
throws YarnException {
// Check if reservation is enabled
if (reservationSystem == null) {
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org