This is an automated email from the ASF dual-hosted git repository.
szetszwo pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/ratis.git
The following commit(s) were added to refs/heads/branch-2 by this push:
new 004ea9eea RATIS-1737. Add default leaderElectionManagement
implementation in AdminProtocol. (#776)
004ea9eea is described below
commit 004ea9eea4e6f0df9f48fc00ae32cbd1e46a11a0
Author: Tsz-Wo Nicholas Sze <[email protected]>
AuthorDate: Tue Nov 8 04:25:19 2022 -0800
RATIS-1737. Add default leaderElectionManagement implementation in
AdminProtocol. (#776)
---
.../src/main/java/org/apache/ratis/protocol/AdminProtocol.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git
a/ratis-common/src/main/java/org/apache/ratis/protocol/AdminProtocol.java
b/ratis-common/src/main/java/org/apache/ratis/protocol/AdminProtocol.java
index e66b296bc..6145a74f3 100644
--- a/ratis-common/src/main/java/org/apache/ratis/protocol/AdminProtocol.java
+++ b/ratis-common/src/main/java/org/apache/ratis/protocol/AdminProtocol.java
@@ -1,4 +1,4 @@
-/**
+/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
@@ -29,7 +29,9 @@ public interface AdminProtocol {
RaftClientReply snapshotManagement(SnapshotManagementRequest request) throws
IOException;
- RaftClientReply leaderElectionManagement(LeaderElectionManagementRequest
request) throws IOException;
+ default RaftClientReply
leaderElectionManagement(LeaderElectionManagementRequest request) throws
IOException {
+ throw new UnsupportedOperationException(getClass() + " does not support
this method yet.");
+ }
RaftClientReply setConfiguration(SetConfigurationRequest request) throws
IOException;