Skip to content
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

Ruby Kafka Issues with MessageBufferOverFlow #973

Closed
PechiMuthuJ opened this issue May 8, 2023 · 2 comments
Closed

Ruby Kafka Issues with MessageBufferOverFlow #973

PechiMuthuJ opened this issue May 8, 2023 · 2 comments

Comments

@PechiMuthuJ
Copy link

PechiMuthuJ commented May 8, 2023

Ruby and Ruby-Kafka Version

  • 3.0:
  • Latest Version of Ruby Kafka

Steps to Reproduce
Produce Message of more than 1MB i will get exception but it will remain in Buffer from now even if you make valid call it will be failing as we are not clearing buffer .

So if you make buffer to fill one time from now every time you will get exceptions
When exception is there we are not clearing buffer so it will introduce duplication of message as well

Expected outcome

If one Message has buffer over flow we should handle that gracefully instead throwing error every time

Actual outcome

Once we produced one message with more than 1MB only that call should throw error in Sync Producer other calls should not throw

As Ruby-Kafka Async Producer internally uses Sync Producer message buffer overflow exception not handled so async producer also crashed and retrying after every 10 Second

If any more information required i am happy to share and looking forward for your response and if the community also feels this should be fixed i am curious to contribute

@mensfeld
Copy link
Contributor

@PechiMuthuJ just for the record: this lib is no longer supported and has been superseded by https://github.com/appsignal/rdkafka-ruby/

@github-actions
Copy link

github-actions bot commented Oct 5, 2023

Issue has been marked as stale due to a lack of activity.

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

No branches or pull requests

2 participants