You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Gunnar Morling (JIRA)" <ji...@apache.org> on 2018/01/17 09:31:00 UTC
[jira] [Updated] (KAFKA-6456) Improve JavaDoc of SourceTask#poll()
to discourage indefinite blocking
[ https://issues.apache.org/jira/browse/KAFKA-6456?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gunnar Morling updated KAFKA-6456:
----------------------------------
Summary: Improve JavaDoc of SourceTask#poll() to discourage indefinite blocking (was: Improve JavaDoc of SourceTask#poll())
> Improve JavaDoc of SourceTask#poll() to discourage indefinite blocking
> ----------------------------------------------------------------------
>
> Key: KAFKA-6456
> URL: https://issues.apache.org/jira/browse/KAFKA-6456
> Project: Kafka
> Issue Type: Improvement
> Components: KafkaConnect
> Affects Versions: 1.0.0
> Reporter: Gunnar Morling
> Priority: Major
>
> The docs of {{poll()}} currently say "This method should block if no data is currently available". This causes the task from transitioning to PAUSED state, if there's no data available for a longer period of time. I'd therefore suggest to reword like this:
> {quote}
> This method should block if no data is currently available but return control to Kafka Connect periodically (by returning null).
> {quote}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)