@@ -169,7 +169,7 @@ protected void configureReplicaForests(String forestIdOrName, int replicaCount,
169169 return ;
170170 }
171171
172- Map <String , String > replicaNamesAndHostIds = determineReplicaNamesAndHostIds (forestIdOrName , replicaCount , hostIds , forestMgr );
172+ Map <String , String > replicaNamesAndHostIds = createReplicaForests (forestIdOrName , replicaCount , hostIds , forestMgr );
173173 logger .info (format ("Configuring forest replicas for primary forest %s" , forestIdOrName ));
174174 if (!replicaNamesAndHostIds .isEmpty ()) {
175175 forestMgr .setReplicas (forestIdOrName , replicaNamesAndHostIds );
@@ -185,10 +185,11 @@ protected void configureReplicaForests(String forestIdOrName, int replicaCount,
185185 * @param replicaCount
186186 * @param hostIds
187187 * @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
189190 */
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 ) {
192193 String primaryForestHostId = forestMgr .getHostId (forestIdOrName );
193194 Map <String , String > replicaNamesAndHostIds = new HashMap <>();
194195 int size = hostIds .size ();
0 commit comments