gaoran10 opened a new pull request #11731:
URL: https://github.com/apache/pulsar/pull/11731
### Motivation
Currently, the subscription will not be removed when closing the
non-persistent topic reader.
### Modifications
Add a new field `isDurable` in NonPersistentSubscription, if the field is
false the non-persistent subscription should be removed when closing the
subscription(Such as a Reader subscription), or the subscription will be
retained(Such as a Consumer subscription).
### Verifying this change
Add a new unit test to verify the reader subscription could be removed.
### Does this pull request potentially affect one of the following parts:
*If `yes` was chosen, please highlight the changes*
- Dependencies (does it add or upgrade a dependency): (no)
- The public API: (no)
- The schema: (no)
- The default values of configurations: (no)
- The wire protocol: (no)
- The rest endpoints: (no)
- The admin cli options: (no)
- Anything that affects deployment: (no)
### Documentation
#### For committer
For this PR, do we need to update docs?
- If no, label this PR with the `no-need-doc` label and explain why.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]