can we use a limit variable that looks like `int limit = indexMetaData.numberOfReplicas() + 1; // one for the primary` and then bound the loop with `<` instead of `<=` it took me a while :)