Skip to content

Update misleading contents in ConsumerPartitionPausedEvent and features.adoc #3293

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

Merged
merged 3 commits into from
Jun 4, 2024

Conversation

bky373
Copy link
Contributor

@bky373 bky373 commented Jun 2, 2024

Changes

  • ConsumerPartitionPausedEvent
    • Correct misleading method name and content.
      • ConsumerPausedEvent -> ConsumerPartitionPausedEvent (This prevents confusion with the existing event ConsumerPausedEvent).
      • getPartitions() -> getPartition() (Since the event is specific to a single partition, use the singular form)
  • features.adoc
    • DeadLetterPublishingRecovererer -> DeadLetterPublishingRecoverer
    • This reverts the incorrect change made in PR #3226.

@bky373 bky373 changed the title Update ConsumerPartitionPausedEvent and features.adoc Update misleading contents in ConsumerPartitionPausedEvent and features.adoc Jun 2, 2024
@@ -47,13 +48,13 @@ public ConsumerPartitionPausedEvent(Object source, Object container, TopicPartit
* Return the paused partition.
* @return the partition.
*/
public TopicPartition getPartitions() {
public TopicPartition getPartition() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this is a public API, it might be better to deprecate this method, mark it for removal, and add the new one getPartition(). In a future version, we can completely remove this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for your comment! I just made a change and check it please.

/**
* Return the paused partition.
* @return the partition.
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

Need the @since tag here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh Thanks for letting me know. I've added it.

@sobychacko sobychacko added this to the 3.3.0-M1 milestone Jun 4, 2024
@sobychacko sobychacko merged commit 10dc58d into spring-projects:main Jun 4, 2024
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.

2 participants