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

fix(sync): extend wait time for RPC layer initialization #13939

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chobits
Copy link
Contributor

@chobits chobits commented Nov 28, 2024

Summary

When we start up DP, we need to make a meta call to CP first, so the first do_sync during the initial sync fails. It reports an ERR error: rpc.lua:432: unable to create worker mutex and sync: rpc is not ready. This experience is not ideal.

The initialization of the configuration also fails, and we have to wait for ourselves to wait 30 seconds (sync_every(30s)) before the configuration can sync successfully. This means that the DP will be unable to function for a period of time after connecting.

Checklist

Issue reference

Fix KAG-5922

@github-actions github-actions bot added core/clustering cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee labels Nov 28, 2024
@chobits chobits requested review from StarlightIbuki, chronolaw and bungle and removed request for StarlightIbuki November 28, 2024 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee core/clustering size/XS skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants