eclipse-paho / eclipse-paho/paho.mqtt.java

waitForCompletion(value) breaks ( fails ) in 1.1.2-SNAPSHOT

Open
#386 0 comments 0 reactions 0 assignees View on GitHub
triage
Dominant language
Java
Stars
2.3k
Forks
919
PR merge metrics
No merged PRs in 30d

Description

Please fill out the form below before submitting, thank you!

- [ ] Bug exists Release Version 1.1.1 ( Master Branch)
- [ X] Bug exists in Snapshot Version 1.1.2-SNAPSHOT (Develop Branch)

Issue:
I'm currently making use of the 1.1.2-SNAPSHOT. While leveraging it's recent additions, i'm trying out to test/simulate network failures using the [ConnectionManipulationProxyServer.java](https://github.com/eclipse/paho.mqtt.java/blob/master/org.eclipse.paho.client.mqttv3.test/src/test/java/org/eclipse/paho/client/mqttv3/test/utilities/ConnectionManipulationProxyServer.java).
As part of the test case, when I use "waitForCompletion(value)", where value is any Integer value (ex: 1000 * 10), the execution breaks immediately when it reaches the 'waitForCompletion(value)'.

Basically, it doesn't wait nor behaves as defined, while executing the waitForCompletion(value), but breaks/squashes the execution.

Downgrading the Paho MQTT version back to 1.1.1 (Release build), the testing scenario behaves in the intended manner without any changes to the code set.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.