siying opened a new pull request, #41790: URL: https://github.com/apache/spark/pull/41790
### What changes were proposed in this pull request? In KafkaBatchInputPartition, which is used for Kafka v2 source, preferredLocations() is now returned from the location already pre-calculated. ### Why are the changes needed? DSv2 Kafka streaming source seems to miss setting the preferred location, which may destroy the purpose of cache for Kafka consumer (connection) & fetched data. For DSv1, we have set the preferred location in RDD. This information is not returned in DSv2. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Some manual verification. -- 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]
