@@ -169,7 +169,7 @@ protected void configureReplicaForests(String forestIdOrName, int replicaCount,
169
169
return ;
170
170
}
171
171
172
- Map <String , String > replicaNamesAndHostIds = determineReplicaNamesAndHostIds (forestIdOrName , replicaCount , hostIds , forestMgr );
172
+ Map <String , String > replicaNamesAndHostIds = createReplicaForests (forestIdOrName , replicaCount , hostIds , forestMgr );
173
173
logger .info (format ("Configuring forest replicas for primary forest %s" , forestIdOrName ));
174
174
if (!replicaNamesAndHostIds .isEmpty ()) {
175
175
forestMgr .setReplicas (forestIdOrName , replicaNamesAndHostIds );
@@ -185,10 +185,11 @@ protected void configureReplicaForests(String forestIdOrName, int replicaCount,
185
185
* @param replicaCount
186
186
* @param hostIds
187
187
* @param forestMgr
188
- * @return
188
+ * @return a map where the keys are replica forest names, and the value of each key is the ID of the host that
189
+ * the replica was created on
189
190
*/
190
- protected Map <String , String > determineReplicaNamesAndHostIds (String forestIdOrName , int replicaCount , List <String > hostIds ,
191
- ForestManager forestMgr ) {
191
+ protected Map <String , String > createReplicaForests (String forestIdOrName , int replicaCount , List <String > hostIds ,
192
+ ForestManager forestMgr ) {
192
193
String primaryForestHostId = forestMgr .getHostId (forestIdOrName );
193
194
Map <String , String > replicaNamesAndHostIds = new HashMap <>();
194
195
int size = hostIds .size ();
0 commit comments