Skip to content

Commit 59b873b

Browse files
authored
Removed MAC methods deprecated in 3.1 (apache#4395)
1 parent 4099860 commit 59b873b

File tree

2 files changed

+0
-39
lines changed

2 files changed

+0
-39
lines changed

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

-35
Original file line numberDiff line numberDiff line change
@@ -51,31 +51,6 @@ public MiniAccumuloConfig(File dir, String rootPassword) {
5151
this.impl = new MiniAccumuloConfigImpl(dir, rootPassword);
5252
}
5353

54-
/**
55-
* Calling this method is optional. If not set, it defaults to two.
56-
*
57-
* @param numTservers the number of tablet servers that mini accumulo cluster should start
58-
*/
59-
// ELASTICITY_TODO: Deprecate in 3.0.0 and remove in elasticity on the merge
60-
@Deprecated(since = "3.1.0")
61-
public MiniAccumuloConfig setNumTservers(int numTservers) {
62-
// impl.setNumTservers(numTservers);
63-
return this;
64-
}
65-
66-
/**
67-
* Calling this method is optional. If not set, it defaults to zero.
68-
*
69-
* @param numScanServers the number of scan servers that mini accumulo cluster should start
70-
* @since 2.1.0
71-
*/
72-
// ELASTICITY_TODO: Deprecate in 3.0.0 and remove in elasticity on the merge
73-
@Deprecated(since = "3.1.0")
74-
public MiniAccumuloConfig setNumScanServers(int numScanServers) {
75-
// impl.setNumScanServers(numScanServers);
76-
return this;
77-
}
78-
7954
/**
8055
* Calling this method is optional. If not set, defaults to 'miniInstance'
8156
*
@@ -225,16 +200,6 @@ public String getRootPassword() {
225200
return impl.getRootPassword();
226201
}
227202

228-
/**
229-
* @return the number of tservers configured for this cluster
230-
*/
231-
// ELASTICITY_TODO: Deprecate in 3.0.0 and remove in elasticity on the merge
232-
@Deprecated(since = "3.1.0")
233-
public int getNumTservers() {
234-
return impl.getClusterServerConfiguration().getTabletServerConfiguration().values().stream()
235-
.reduce(0, Integer::sum);
236-
}
237-
238203
/**
239204
* @return is the current configuration in jdwpEnabled mode?
240205
*

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

-4
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ 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")
154153
@SuppressFBWarnings(value = {"PATH_TRAVERSAL_IN", "UNENCRYPTED_SERVER_SOCKET"},
155154
justification = "code runs in same security context as user who provided input file name; "
156155
+ "socket need not be encrypted, since this class is provided for testing only")
@@ -181,9 +180,6 @@ public static void main(String[] args) throws IOException, InterruptedException
181180
if (opts.prop.containsKey(INSTANCE_NAME_PROP)) {
182181
config.setInstanceName(opts.prop.getProperty(INSTANCE_NAME_PROP));
183182
}
184-
if (opts.prop.containsKey(NUM_T_SERVERS_PROP)) {
185-
config.setNumTservers(Integer.parseInt(opts.prop.getProperty(NUM_T_SERVERS_PROP)));
186-
}
187183
if (opts.prop.containsKey(ZOO_KEEPER_PORT_PROP)) {
188184
config.setZooKeeperPort(Integer.parseInt(opts.prop.getProperty(ZOO_KEEPER_PORT_PROP)));
189185
}

0 commit comments

Comments
 (0)