HDFS-9787, it sloved the problem that standby NNs can upload FSImage to ANN after become non-primary standby NN. But in its unit test, it seems there is a small problem. when ANN change state to standby and standby nns should do a checkpoint. And in test, it makes a checpoint check as follow:
And in these code, the nnIdx for waitForCheckpoint is always 1, not i. It seems there is no need to check one standby nn's checkpoint NUM_NNS times.