Ngone51 commented on pull request #28656: URL: https://github.com/apache/spark/pull/28656#issuecomment-635191530
> So another thought here is to only reset this when the locality levels actually changed. I think the current condition(`if (currentLocalityIndex > previousLocalityIndex)`) could satisfy the requirement. If the `currentLocalityIndex` is changed to be bigger compared to the `previousLocalityIndex`, it means there're new locality levels added before the current locality level. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
