Skip to content

fix new-counter-demo MQTT connection error handling - #172

Open
blackdragoon26 wants to merge 2 commits into
kubeedge:masterfrom
blackdragoon26:fix/counter-mqtt-connect-error
Open

fix new-counter-demo MQTT connection error handling#172
blackdragoon26 wants to merge 2 commits into
kubeedge:masterfrom
blackdragoon26:fix/counter-mqtt-connect-error

Conversation

@blackdragoon26

Copy link
Copy Markdown

What type of PR is this?

/kind bug

What this PR does / why we need it:

Prevents the new-counter-demo MQTT push method from terminating the entire virtual protocol process when the broker connection fails. The error is logged and the current publish attempt returns. A focused regression test covers an invalid broker address.

Which issue(s) this PR fixes:

Fixes #171

Special notes for your reviewer:

NONE

Does this PR introduce a user-facing change?:

Bug fix: do not terminate the mapper on an MQTT connection failure.

@kubeedge-bot kubeedge-bot added kind/bug Categorizes issue or PR as related to a bug. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Aug 14, 2026
@kubeedge-bot

Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: blackdragoon26
To complete the pull request process, please assign shelley-baoyue after the PR has been reviewed.
You can assign the PR to them by writing /assign @shelley-baoyue in a comment when ready.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubeedge-bot kubeedge-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Aug 14, 2026
@blackdragoon26
blackdragoon26 marked this pull request as ready for review August 14, 2026 11:50
@kubeedge-bot kubeedge-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 14, 2026
Signed-off-by: Sankalp Jha <sankalp.jha9643@gmail.com>
@blackdragoon26
blackdragoon26 force-pushed the fix/counter-mqtt-connect-error branch from 2e42320 to 350e9e5 Compare August 14, 2026 11:55
@blackdragoon26

Copy link
Copy Markdown
Author

@Shelley-BaoYue @wbc6080
Kindly review this PR.

Signed-off-by: blackdragoon26 <sankalp.jha9643@gmail.com>
@blackdragoon26
blackdragoon26 force-pushed the fix/counter-mqtt-connect-error branch from f3acf85 to cea9c87 Compare August 24, 2026 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Categorizes issue or PR as related to a bug. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

new-counter-demo MQTT push terminates the mapper on connection failure

2 participants