Skip to content

[improve][client]Add logging for message size exceeding the configured threshold before throwing exception#16

Open
mukesh154 wants to merge 1 commit into
masterfrom
log-message-size-exceedance
Open

[improve][client]Add logging for message size exceeding the configured threshold before throwing exception#16
mukesh154 wants to merge 1 commit into
masterfrom
log-message-size-exceedance

Conversation

@mukesh154
Copy link
Copy Markdown

Motivation

The current behavior does not provide clear visibility when the message size exceeds the configured maximum size, often leading to InvalidMessageException error. This change introduces a log statement to notify when the message size exceeds the threshold, helping users identify and troubleshoot message size issues more easily.

Modifications

Added a log.warn statement before releasing the semaphore and throwing the InvalidMessageException.
The log includes details about the message size, the configured threshold, and the producer/topic involved, improving visibility for debugging and troubleshooting.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant