Skip to content

Add integration tests for paho-mqtt5 resubscribe failure after reconnect - #9099

Draft
JinyuChen97 wants to merge 1 commit into
apache:mainfrom
JinyuChen97:CAMEL-24511-resubscribe-failure-test
Draft

Add integration tests for paho-mqtt5 resubscribe failure after reconnect#9099
JinyuChen97 wants to merge 1 commit into
apache:mainfrom
JinyuChen97:CAMEL-24511-resubscribe-failure-test

Conversation

@JinyuChen97

@JinyuChen97 JinyuChen97 commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Add two test scenarios using a custom FaultyMqtt5Broker (Java TCP server) that simulates MQTT5 resubscribe failure:

  1. Recovery test: with SupervisingRouteController, route recovers via retry after restartRouteAsync() is triggered by keep-alive timeout
  2. No-recovery test: without SupervisingRouteController, route correctly transitions to Stopped instead of remaining as a zombie in Started state

All jvm/native tests passed

The tests can only be merged after camel version bump.

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

Add two test scenarios using a custom FaultyMqtt5Broker (Java TCP server) that simulates MQTT5 resubscribe failure:

1. Recovery test: with SupervisingRouteController, route recovers via retry after restartRouteAsync() is triggered by keep-alive timeout
2. No-recovery test: without SupervisingRouteController, route correctly transitions to Stopped instead of remaining as a zombie in Started state

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant