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

Add timeout to hasMessageAvailable to leader election process in Pulsar Functions #8687

Merged
merged 1 commit into from Nov 27, 2020

Conversation

jerrypeng
Copy link
Contributor

Motivation

The API "hasMessageAvailable" stalls sometimes which leads to the leader initialization process in Pulsar Functions to stall and not complete.

Modifications

Add a timeout so that a leader does not get stuck

@jerrypeng jerrypeng added type/bug The PR fixed a bug or issue reported a bug area/function labels Nov 24, 2020
@jerrypeng jerrypeng added this to the 2.8.0 milestone Nov 24, 2020
@jerrypeng jerrypeng self-assigned this Nov 24, 2020
@merlimat merlimat merged commit 9443ba2 into apache:master Nov 27, 2020
merlimat pushed a commit to merlimat/pulsar that referenced this pull request Dec 19, 2020
…ar Functions (apache#8687)

Co-authored-by: Jerry Peng <jerryp@splunk.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/function type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants