Skip to content

[improve] Add testcase to test using keyShared subscription and delayed messages at the same time - #1361

Merged
RobertIndie merged 1 commit into
apache:masterfrom
geniusjoe:dev/add-keyshared-and-delay-messsages-test-case
Jun 11, 2025
Merged

RobertIndie merged 1 commit into
apache:masterfrom
geniusjoe:dev/add-keyshared-and-delay-messsages-test-case

Conversation

@geniusjoe

Copy link
Copy Markdown
Contributor

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

Motivation

Refered to pr 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.

Verifying this change

  • Make sure that the change passes the CI checks.
    This change added tests and can be verified.

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)

Documentation

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

@geniusjoe geniusjoe changed the title [improve] Add Testcase to test using keyShared subscription and delayed messages at the same time [improve] Add testcase to test using keyShared subscription and delayed messages at the same time May 14, 2025
@geniusjoe
geniusjoe force-pushed the dev/add-keyshared-and-delay-messsages-test-case branch from c403efd to d0077e2 Compare June 5, 2025 12:04
@RobertIndie
RobertIndie requested a review from Copilot June 6, 2025 10:40
@RobertIndie RobertIndie added this to the v0.16.0 milestone Jun 6, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a new test case to validate that a key-shared subscription can correctly consume delayed messages.

  • Adds TestConsumerKeySharedWithDelayedMessages test case.
  • Updates the Makefile to use a newer golangci-lint version.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
pulsar/consumer_test.go Added a new test case for key-shared subscription with delayed messages.
Makefile Upgraded golangci-lint version from v1.51.2 to v1.61.0.

Comment thread pulsar/consumer_test.go Resolved
Comment thread pulsar/consumer_test.go Resolved
@geniusjoe
geniusjoe force-pushed the dev/add-keyshared-and-delay-messsages-test-case branch from d0077e2 to 7073c46 Compare June 11, 2025 08:23
@geniusjoe
geniusjoe force-pushed the dev/add-keyshared-and-delay-messsages-test-case branch from 7073c46 to eb56075 Compare June 11, 2025 08:25
@RobertIndie
RobertIndie merged commit 5d49f15 into apache:master Jun 11, 2025
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