beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Created] (BEAM-3282) MqttIO reader should use receive with timeout
Date Mon, 04 Dec 2017 05:18:00 GMT
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)

Mime
View raw message