KIP-348 — Deprecate null from SourceTask#poll()
Discussion Connect
Deprecates returning null from SourceTask#poll() as the mechanism for signaling no available data, proposing an alternative empty collection return or an explicit pause API. Returning null is semantically awkward in typed Java/Scala code and conflicts with null-safety idioms; the contract was undocumented and confused connector developers.
Details
| Author | Chia-Ping Tsai |
| Status | Discussion |
| Wiki | View on Apache Wiki |
| Created | 2018-07-31 |
| Last Modified | 2018-08-06 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.