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

ISSUE-491: Producer block may block forever #167

Closed
sijie opened this issue Mar 23, 2021 · 0 comments
Closed

ISSUE-491: Producer block may block forever #167

sijie opened this issue Mar 23, 2021 · 0 comments

Comments

@sijie
Copy link
Member

sijie commented Mar 23, 2021

Original Issue: apache#491


Expected behavior

If producer.Close are called,it will close within configured OperationTimeout

Actual behavior

producer.Close may block forever and won't time out after configured OperationTimeout

Steps to reproduce

Just run the perf program for a while and send SIGINT or ctrl+c to it. This situation may be triggered.

This is because the callback of producer.SendAsyc contains a send behavior on a channel which under the same scope with stopCh. When we trigger producer.Close, if case <-stop: happens before case latency := <-ch:, it will block forever because it may be block at here and RequestOnCnx has no time out guarantee.

System configuration

Pulsar version: any

@sijie sijie closed this as completed Jun 2, 2021
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

1 participant