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

Adapter resub stats #305

Closed
wants to merge 6 commits into from

Conversation

bretambrose
Copy link
Contributor

  • get stats implementation & test
  • resubscribe implementation & tests

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@bretambrose bretambrose marked this pull request as ready for review July 14, 2023 16:14
@codecov-commenter
Copy link

Codecov Report

Patch coverage: 85.71% and project coverage change: -0.10 ⚠️

Comparison is base (547edad) 82.18% compared to head (1d7dde6) 82.09%.

Additional details and impacted files
@@                       Coverage Diff                       @@
##           AdapterSubscribeUnsubscribe     #305      +/-   ##
===============================================================
- Coverage                        82.18%   82.09%   -0.10%     
===============================================================
  Files                               19       19              
  Lines                             8376     8445      +69     
===============================================================
+ Hits                              6884     6933      +49     
- Misses                            1492     1512      +20     
Impacted Files Coverage Δ
source/mqtt.c 94.59% <ø> (ø)
source/v5/mqtt3_to_mqtt5_adapter.c 78.72% <85.71%> (+0.15%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

* If we're a regular subscribe, build the mqtt5 operation now. Otherwise, we have to wait until
* we're on the event loop thread and it's safe to query the subscription set.
*/
if (options->subscription_count > 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

If it's possible to call aws_mqtt_client_connection_subscribe_multiple with an empty aws_array_list, the subscription_count would be zero, the subscribe_op->subscribe_op would remain null, and the subscribe multiple might trigger a resubscribe.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True, will add a synchronous failure check for that case.

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