gaborgsomogyi opened a new pull request #29729:
URL: https://github.com/apache/spark/pull/29729


   ### What changes were proposed in this pull request?
   Deprecated `KafkaConsumer.poll(long)` API calls may cause infinite wait in 
the driver. In this PR I've changed `KafkaConsumer` calls to `AdminClient` 
calls. Please see the following 
[doc](https://docs.google.com/document/d/1gAh0pKgZUgyqO2Re3sAy-fdYpe_SxpJ6DkeXE8R1P7E/edit?usp=sharing)
 for further details.
   
   The PR contains the following changes:
   * Replaced `KafkaConsumer` calls to `AdminClient` calls
   * GroupId prefix feature removed from driver (`AdminClient` doesn't need any 
GroupId)
   * GroupId override feature removed from driver (`AdminClient` doesn't need 
any GroupId)
   * Additional unit tests
   * Code comment changes
   * Minor bugfixes here and there
   * Removed Kafka auto topic creation feature (please see doc for rationale). 
In short, it's super hidden, not sure anybody ever used in production + error 
prone.
   
   ### Why are the changes needed?
   Driver may hang forever.
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   ### How was this patch tested?
   Existing + additional unit tests.
   Cluster test with simple Kafka topic to another topic query.
   


----------------------------------------------------------------
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]

Reply via email to