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

feat: remove $queue in favor of $share #9412

Merged
merged 4 commits into from Nov 28, 2022
Merged

Conversation

olcai
Copy link
Contributor

@olcai olcai commented Nov 23, 2022

This PR removes support for setting shared subscriptions with the non-standard $queue feature. Shared subscriptions is now part of the MQTT spec (using $share) and we will only support that from now on.

Fixes EMQX-8010.

PR to docs repo: emqx/emqx-docs#1510

PR Checklist

Please convert it to a draft if any of the following conditions are not met. Reviewers may skip over until all the items are checked:

  • Added tests for the changes
  • Changed lines covered in coverage report
  • Change log has been added to changes/ dir
  • For EMQX 4.x: appup files updated (execute scripts/update-appup.sh emqx)
  • For internal contributor: there is a jira ticket to track this change
  • If there should be document changes, a PR to emqx-docs.git is sent, or a jira ticket is created to follow up
  • In case of non-backward compatible changes, reviewer should check this item as a write-off, and add details in Backward Compatibility section

Backward Compatibility

More information

@zmstone
Copy link
Member

zmstone commented Nov 23, 2022

rebase master
and add a changelog to changes/v5.0.12-en.md

This commit removes support for setting shared subscriptions with the
non-standard $queue feature. Shared subscriptions is now part of the MQTT
spec (using $shared) and we will only support that from now on.
filename:join/1 doesn't work on Windows for joining a topic. We now use
emqx_topic:join/1 instead.
@olcai
Copy link
Contributor Author

olcai commented Nov 28, 2022

changelog has been added - translation needed

@olcai olcai marked this pull request as ready for review November 28, 2022 10:37
@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 3563683696

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • 46 unchanged lines in 14 files lost coverage.
  • Overall coverage decreased (-0.04%) to 78.14%

Files with Coverage Reduction New Missed Lines %
apps/emqx_management/src/emqx_mgmt_util.erl 1 13.79%
apps/emqx/src/emqx_cm.erl 1 91.28%
apps/emqx/src/emqx_schema.erl 1 90.91%
apps/emqx/src/emqx_listeners.erl 1 84.49%
apps/emqx_machine/src/emqx_machine.erl 1 79.31%
apps/emqx_modules/src/emqx_delayed.erl 1 94.78%
apps/emqx_authz/src/emqx_authz_schema.erl 1 90.28%
apps/emqx/src/emqx_connection.erl 2 87.32%
apps/emqx/src/emqx_logger_textfmt.erl 2 47.37%
apps/emqx/src/emqx_channel.erl 3 87.08%
Totals Coverage Status
Change from base Build 3561074289: -0.04%
Covered Lines: 20961
Relevant Lines: 26825

💛 - Coveralls

changes/v5.0.12-zh.md Outdated Show resolved Hide resolved
changes/v5.0.12-en.md Outdated Show resolved Hide resolved
@olcai olcai changed the title feat: remove $queue in favor of $shared feat: remove $queue in favor of $shar Nov 28, 2022
@olcai olcai changed the title feat: remove $queue in favor of $shar feat: remove $queue in favor of $share Nov 28, 2022
Co-authored-by: Zaiming (Stone) Shi <zmstone@gmail.com>
@zmstone zmstone merged commit 6a76a2d into emqx:master Nov 28, 2022
@olcai olcai deleted the remove-dollar-queue branch November 29, 2022 12:29
@yinyuncan
Copy link

呃!$queue被删除,5.0 文档需要应该更新下,我昨天排查这个问题排查了好久

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants