conduktor.io ↗

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

AuthorChia-Ping Tsai
StatusDiscussion
WikiView on Apache Wiki
Created2018-07-31
Last Modified2018-08-06
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.