[
https://issues.apache.org/jira/browse/BEAM-3282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jean-Baptiste Onofré resolved BEAM-3282.
----------------------------------------
Resolution: Fixed
Fix Version/s: 2.3.0
> 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é
> Fix For: 2.3.0
>
>
> 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)