Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove SubAck/UnsubAck/PubAck/PubRec/PubRel/PubComp reason code errors from critical state error #877

Merged
merged 7 commits into from
Jun 26, 2024

Conversation

xiaocq2001
Copy link
Contributor

Type of change

Bug fix (non-breaking change which fixes an issue): #875
In v5, filtered error cases so ACK fail cases are not disconnecting.

Checklist:

  • Formatted with cargo fmt
  • Make an entry to CHANGELOG.md if it's relevant to the users of the library. If it's not relevant mention why.

@coveralls
Copy link

coveralls commented Jun 12, 2024

Pull Request Test Coverage Report for Build 9475994142

Details

  • 0 of 4 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall first build on chxiao/disconnect_by_case at 36.129%

Changes Missing Coverage Covered Lines Changed/Added Lines %
rumqttc/src/v5/eventloop.rs 0 4 0.0%
Totals Coverage Status
Change from base Build 9451919087: 36.1%
Covered Lines: 5970
Relevant Lines: 16524

💛 - Coveralls

@xiaocq2001 xiaocq2001 changed the title Disconnect by case Remove SubAck/UnsubAck/PubAck/PubRec/PubRel/PubComp reason code errors from state error Jun 24, 2024
@xiaocq2001 xiaocq2001 changed the title Remove SubAck/UnsubAck/PubAck/PubRec/PubRel/PubComp reason code errors from state error Remove SubAck/UnsubAck/PubAck/PubRec/PubRel/PubComp reason code errors from critical state error Jun 24, 2024
@coveralls
Copy link

coveralls commented Jun 24, 2024

Pull Request Test Coverage Report for Build 9641321877

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 12 (0.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall first build on chxiao/disconnect_by_case at 36.127%

Changes Missing Coverage Covered Lines Changed/Added Lines %
rumqttc/src/v5/eventloop.rs 0 2 0.0%
rumqttc/src/v5/state.rs 0 10 0.0%
Totals Coverage Status
Change from base Build 9451919087: 36.1%
Covered Lines: 5970
Relevant Lines: 16525

💛 - Coveralls

Copy link
Member

@swanandx swanandx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! just some minor changes.

PS: I don't think logging warn! is correct in case of failure reason code ( because i think it is upto application to determine how to treat reason code ). But let's keep it for now for smooth transition from returning error to logging warning. Can you also add this under changed section of changelog that we will be logging warnings?

Thanks for the PR!

rumqttc/CHANGELOG.md Outdated Show resolved Hide resolved
rumqttc/src/v5/eventloop.rs Outdated Show resolved Hide resolved
@xiaocq2001
Copy link
Contributor Author

Updated, please check.

@coveralls
Copy link

coveralls commented Jun 26, 2024

Pull Request Test Coverage Report for Build 9672557916

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 10 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall first build on chxiao/disconnect_by_case at 36.138%

Changes Missing Coverage Covered Lines Changed/Added Lines %
rumqttc/src/v5/state.rs 0 10 0.0%
Totals Coverage Status
Change from base Build 9451919087: 36.1%
Covered Lines: 5970
Relevant Lines: 16520

💛 - Coveralls

@coveralls
Copy link

coveralls commented Jun 26, 2024

Pull Request Test Coverage Report for Build 9672609567

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 10 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall first build on chxiao/disconnect_by_case at 36.138%

Changes Missing Coverage Covered Lines Changed/Added Lines %
rumqttc/src/v5/state.rs 0 10 0.0%
Totals Coverage Status
Change from base Build 9451919087: 36.1%
Covered Lines: 5970
Relevant Lines: 16520

💛 - Coveralls

@swanandx swanandx merged commit db1f261 into bytebeamio:main Jun 26, 2024
4 checks passed
@swanandx
Copy link
Member

Thank you so much for your patience and contribution!

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.

3 participants