Skip to content

fix: added mechanism to handle serialization failure gracefully#29

Merged
DamirDenis-Tudor merged 1 commit intomainfrom
25-bug-deserialization-error-stops-consumer-from-receiving-further-messages
May 22, 2025
Merged

fix: added mechanism to handle serialization failure gracefully#29
DamirDenis-Tudor merged 1 commit intomainfrom
25-bug-deserialization-error-stops-consumer-from-receiving-further-messages

Conversation

@DamirDenis-Tudor
Copy link
Owner

  • A new method, deliverFailureCallback, has been added to the basicConsume builder.
  • By default, all messages can be deserialized as String or ByteArray.
  • If deserialization to the specified type fails and deliverFailureCallback is invoked, the responsibility for handling the failure falls to the end user. If this callback is not provided, the failed message will be quietly ignored.
  • Additionally, a series of tests has been included.

@DamirDenis-Tudor DamirDenis-Tudor force-pushed the 25-bug-deserialization-error-stops-consumer-from-receiving-further-messages branch from 4ee9c01 to 7737d75 Compare May 21, 2025 14:11
@DamirDenis-Tudor DamirDenis-Tudor merged commit f8850c6 into main May 22, 2025
1 check passed
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.

Bug: Deserialization error stops consumer from receiving further messages

2 participants