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)