Skip to content

[improve] Update deliverAfter and deliverAt api comment - #1339

Merged
nodece merged 1 commit into
apache:masterfrom
geniusjoe:dev/update-delay-related-api-comment
Mar 15, 2025
Merged

nodece merged 1 commit into
apache:masterfrom
geniusjoe:dev/update-delay-related-api-comment

Conversation

@geniusjoe

Copy link
Copy Markdown
Contributor

Contribution Checklist

Master Issue: apache/pulsar#23968

Motivation

Related Issue: apache/pulsar-site#507

We now support consuming delayed messages with shared and Key-shared type subscriptions, which has been corrected since pulsar 3.x doc in above pr.

But Golang code deliverAt and deliverAfter comment says we can only support Shared type subscription, so that maybe we need to fix them.

Modifications

Replace SubscriptionType=Shared comment with SubscriptionType=Shared or SubscriptionType=KeyShared in deliverAt and deliverAfter api.

Verifying this change

  • Make sure that the change passes the CI checks.
    This change is a trivial rework / code cleanup without any test coverage.

Does this pull request potentially affect one of the following parts:

  • 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)

Documentation

  • Does this pull request introduce a new feature? (no)
  • If yes, how is the feature documented? (not documented)

@crossoverJie crossoverJie added this to the v0.15.0 milestone Mar 11, 2025
@crossoverJie

Copy link
Copy Markdown
Member

@geniusjoe Great fix, I found no unit test for SubscriptionType=KeyShared, could you add one?

@RobertIndie

Copy link
Copy Markdown
Member

@geniusjoe Great fix, I found no unit test for SubscriptionType=KeyShared, could you add one?

+1

@nodece
nodece merged commit db5cb7a into apache:master Mar 15, 2025
@geniusjoe

Copy link
Copy Markdown
Contributor Author

Thanks for review! I'd add key-shared related test cases in the next pr.

RobertIndie pushed a commit that referenced this pull request Jun 11, 2025
…ed messages at the same time (#1361)

Master Issue: apache/pulsar#23968 
Related pr: #1339

### Motivation
Refered to pr [comment](#1339 (comment)), there is no test cases about using keyShared subscription mode to consume delayed messages, so that maybe we need to add one.


### Modifications
Add `pulsar/consumer_test/TestConsumerKeySharedWithDelayedMessages` test 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.

5 participants