You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2017/12/04 05:18:00 UTC
[jira] [Created] (BEAM-3282) MqttIO reader should use receive with
timeout
Jean-Baptiste Onofré created BEAM-3282:
------------------------------------------
Summary: MqttIO reader should use receive with timeout
Key: BEAM-3282
URL: https://issues.apache.org/jira/browse/BEAM-3282
Project: Beam
Issue Type: Bug
Components: sdk-java-extensions
Reporter: Jean-Baptiste Onofré
Assignee: Jean-Baptiste Onofré
Now, {{MqttIO}} reader uses {{connection.receive()}} which is a blocking method, waiting for messages. This prevents the reader to return {{false}} when there's no message and so to advance the processing.
Instead, the reader should use {{connection.receive(timeout, timeunit)}} and return {{false}} in {{advance()}} when message is null.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)