warrenzhu25 opened a new pull request #30175: URL: https://github.com/apache/spark/pull/30175
### What changes were proposed in this pull request? Add check for total executor cores when `SetReaderPartitions` message received. ### Why are the changes needed? Current behavior is job hang, troubleshoot hang cause is time-consuming. ### Does this PR introduce _any_ user-facing change? Yes, if total executor cores is smaller than total kafka partition count, the exception with below error will be thrown: `Total %s kafka partitions to read, but only have %s(num of executors) * %s(cores per executor) = %s(total cores). Please increase total number of executor cores to at least %s` ### How was this patch tested? Manually tested. ---------------------------------------------------------------- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org