Skip to content

[fix][doc] The messageIds in onNegativeAcksSend shouldn't be null#19852

Merged
RobertIndie merged 2 commits intoapache:masterfrom
RobertIndie:fix-doc-interceptor
Mar 21, 2023
Merged

[fix][doc] The messageIds in onNegativeAcksSend shouldn't be null#19852
RobertIndie merged 2 commits intoapache:masterfrom
RobertIndie:fix-doc-interceptor

Conversation

@RobertIndie
Copy link
Member

Motivation

The onNegativeAcksSend is only called by:

consumer.onNegativeAcksSend(messagesToRedeliver);

It will not be null. The statement null if acknowledge fail. is incorrect.

Modifications

  • Remove the incorrect statement and refine the doc.

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:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository:

Signed-off-by: Zike Yang <zike@apache.org>
@RobertIndie RobertIndie added type/bug The PR fixed a bug or issue reported a bug doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. component/client-java labels Mar 17, 2023
@RobertIndie RobertIndie added this to the 3.0.0 milestone Mar 17, 2023
@RobertIndie RobertIndie self-assigned this Mar 17, 2023
@RobertIndie RobertIndie requested a review from momo-jun March 20, 2023 07:22
…onsumerInterceptor.java

Co-authored-by: Jun Ma <60642177+momo-jun@users.noreply.github.com>
Copy link
Contributor

@momo-jun momo-jun left a comment

Choose a reason for hiding this comment

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

LGTM

@RobertIndie RobertIndie merged commit 1e44ba1 into apache:master Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. type/bug The PR fixed a bug or issue reported a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants