hfutatzhanghb commented on PR #5777: URL: https://github.com/apache/hadoop/pull/5777#issuecomment-1606509566
> The `for each` statement in java will be translate to the form of iterator from the beginning. See [java doc The enhanced for statement](https://docs.oracle.com/javase/specs/jls/se8/html/jls-14.html#jls-14.14.2). So it seems that `pickupReplicaSet` only be called once. Hi, @zhangshuyan0. Thanks a lot for your reviewing and reminding this case. Learned a lot from it. Thanks again~ I will close this PR. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
