fix(sync): extend wait time for RPC layer initialization #13939
+3
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
changelog/unreleased/kong
orskip-changelog
label added on PR if changelog is unnecessary. README.mdIssue reference
Fix KAG-5922