Abacn opened a new issue, #39179:
URL: https://github.com/apache/beam/issues/39179
### What needs to happen?
MqttIO uses org.fusesource.mqtt-client:mqtt-client. There is a known bug in
its BlockingConnection, such that a StackOverflowError raised when there is no
incoming message in extended period of time, as it registers a callback on
every poll ended with timeout:
```
// In package org.fusesource.mqtt.client.BlockingConnection
public Message receive(long amount, TimeUnit unit) throws Exception {
Future<Message> receive = this.next.receive();
try {
Message message = receive.await(amount, unit);
if( message!=null ) {
message.blocking = true;
}
return message;
} catch (TimeoutException e) {
// Put it back on the queue..
receive.then(new Callback<Message>() {
public void onSuccess(final Message value) {
next.putBackMessage(value);
}
public void onFailure(Throwable value) {
}
});
return null;
}
}
```
However, fusesource Mqtt client has long been unmaintained. To move forward,
we'd need to migrate mqttio client to a supported solution. One choice is
ActiveMQ's mqtt client, which is actively maintained, and activemq is already a
test dependency for mqttio (broker)
### Issue Priority
Priority: 2 (default / most normal work should be filed as P2)
### Issue Components
- [ ] Component: Python SDK
- [x] Component: Java SDK
- [ ] Component: Go SDK
- [ ] Component: Typescript SDK
- [x] Component: IO connector
- [ ] Component: Beam YAML
- [ ] Component: Beam examples
- [ ] Component: Beam playground
- [ ] Component: Beam katas
- [ ] Component: Website
- [ ] Component: Infrastructure
- [ ] Component: Spark Runner
- [ ] Component: Flink Runner
- [ ] Component: Prism Runner
- [ ] Component: Twister2 Runner
- [ ] Component: Hazelcast Jet Runner
- [ ] Component: Google Cloud Dataflow Runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]