Skip to content

Commit 8b0262d

Browse files
authoredMar 18, 2024
Deprecated MiniAccumuloConfig setNumServer methods (apache#4374)
These methods are removed in the elasticity branch in favor of a cluster server configuration object
1 parent da0e0e6 commit 8b0262d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
 

‎minicluster/src/main/java/org/apache/accumulo/minicluster/MiniAccumuloConfig.java

+3
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public MiniAccumuloConfig(File dir, String rootPassword) {
5656
*
5757
* @param numTservers the number of tablet servers that mini accumulo cluster should start
5858
*/
59+
@Deprecated(since = "3.1.0")
5960
public MiniAccumuloConfig setNumTservers(int numTservers) {
6061
impl.setNumTservers(numTservers);
6162
return this;
@@ -67,6 +68,7 @@ public MiniAccumuloConfig setNumTservers(int numTservers) {
6768
* @param numScanServers the number of scan servers that mini accumulo cluster should start
6869
* @since 2.1.0
6970
*/
71+
@Deprecated(since = "3.1.0")
7072
public MiniAccumuloConfig setNumScanServers(int numScanServers) {
7173
impl.setNumScanServers(numScanServers);
7274
return this;
@@ -224,6 +226,7 @@ public String getRootPassword() {
224226
/**
225227
* @return the number of tservers configured for this cluster
226228
*/
229+
@Deprecated(since = "3.1.0")
227230
public int getNumTservers() {
228231
return impl.getNumTservers();
229232
}

‎minicluster/src/main/java/org/apache/accumulo/minicluster/MiniAccumuloRunner.java

+1
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ public static class Opts extends Help {
150150
*
151151
* @param args An optional -p argument can be specified with the path to a valid properties file.
152152
*/
153+
@SuppressWarnings("deprecation")
153154
@SuppressFBWarnings(value = {"PATH_TRAVERSAL_IN", "UNENCRYPTED_SERVER_SOCKET"},
154155
justification = "code runs in same security context as user who provided input file name; "
155156
+ "socket need not be encrypted, since this class is provided for testing only")

0 commit comments

Comments
 (0)