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

Default KeepAliveInterval gets "Detected stale connection to broker" and "Failed to write on connection" errors #1024

Closed
gunli opened this issue Jun 3, 2023 · 4 comments

Comments

@gunli
Copy link
Contributor

gunli commented Jun 3, 2023

Expected behavior

Default KeepAliveInterval should work well.

Actual behavior

Gets "Detected stale connection to broker" and "Failed to write on connection" errors

Steps to reproduce

  1. I have about 6 producer services(about 100 Pods) that produce messages to different Pulsar server clusters;
  2. All the producers' KeepAliveInterval are set to default(30s), and the values of the servers are the same;
  3. Print debug log and increase an error metrics counter;
  4. Start to produce messages;
  5. Monitor the debug log and metrics;
  6. Gets "Detected stale connection to broker" and "Failed to write on connection" errors quite often;
  7. Sets KeepAliveInterval to 15s, errors continue;
  8. When KeepAliveInterval sets to 5s, errors stop.

System configuration

Pulsar version: v2.11.0
Pulsar client go version: v0.10.0

@gunli
Copy link
Contributor Author

gunli commented Jun 3, 2023

image errors are very often when `KeepAliveInterval ` are set to 15s or longer, and errors stops after `KeepAliveInterval ` are set to 5s.

@gunli
Copy link
Contributor Author

gunli commented Jun 3, 2023

image errors we got.

@gunli
Copy link
Contributor Author

gunli commented Jun 5, 2023

image
It seems set to 5s still errors

@gunli gunli closed this as completed Oct 26, 2023
@kaviyakrishnamoorthy
Copy link

is it resolved?how do we resolve this issue?

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