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

Big messages disappearing #127

Closed
frranck opened this issue Oct 16, 2018 · 2 comments
Closed

Big messages disappearing #127

frranck opened this issue Oct 16, 2018 · 2 comments

Comments

@frranck
Copy link

frranck commented Oct 16, 2018

Hello,
If I'm writing a "too big" message with

err = w.WriteMessages(context.Background(),
kafka.Message{
Key: key,
Value: value,
},
)
if err != nil {
log.Errorln("WriteMessage", err.Error())
}

I'm not getting any errors, kafka and zookeeper don't show anything in the logs, and the message simply doesn't appear with kafka-console-consumer.sh.

Any idea how to fix/troubleshot that ?

@frranck frranck changed the title Big messages dissapearing Big messages disappearing Oct 16, 2018
@achille-roussel
Copy link
Contributor

Is the writer configured to produce asynchronously to kafka?

If that’s the case it’s expexted to be a “lossy” production mode, messages that failed to be delivered will be retired, or dropped if they failed because of a non-recoverable error (like in your case).

@frranck
Copy link
Author

frranck commented Oct 17, 2018

@achille-roussel thanks a lot, that helped me to get an error.

WriteMessage [10] Message Size Too Large: the server has a configurable maximum message size to avoid unbounded memory allocation and the client attempted to produce a message larger than this maximum

@frranck frranck closed this as completed Oct 17, 2018
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

No branches or pull requests

2 participants