Skip to content

[improve][client] In cases where there is a risk of message loss, adjust the log level to error#25854

Merged
poorbarcode merged 2 commits into
apache:masterfrom
poorbarcode:fix/msg_lost_3
May 24, 2026
Merged

[improve][client] In cases where there is a risk of message loss, adjust the log level to error#25854
poorbarcode merged 2 commits into
apache:masterfrom
poorbarcode:fix/msg_lost_3

Conversation

@poorbarcode
Copy link
Copy Markdown
Contributor

Motivation & Modifications

Background: When calling consumer.receiveAsync(), the client will maintain a pending completable future that is used to trace the receive messages request. The client will trigger the pending future when the next message comes in.

Issue: The client ignores some unexpected cases, which may lose messages.

modifications: print error log if the code runs to an unexpected case

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

@poorbarcode poorbarcode merged commit 09035ff into apache:master May 24, 2026
43 checks passed
poorbarcode added a commit that referenced this pull request May 27, 2026
…ust the log level to error (#25854)

(cherry picked from commit 09035ff)
poorbarcode added a commit that referenced this pull request May 27, 2026
…ust the log level to error (#25854)

(cherry picked from commit 09035ff)
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.

3 participants