-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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(clustering/rpc): cascade deleting for incremental sync #13836
Conversation
@@ -161,8 +166,38 @@ function _M:register_dao_hooks() | |||
|
|||
ngx_log(ngx_DEBUG, "[kong.sync.v2] new delta due to deleting ", name) | |||
|
|||
-- set lmdb value to ngx_null then return row | |||
return self:entity_delta_writer(entity, name, options, ws_id, true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that we lost this logic in the new patch? Is it intended?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, entity_delta_writer()
only process one entity, but in deletion we may have many entities, but the basic logic is same, please compare to entity_delta_writer()
.
Cherry-pick failed for Please cherry-pick the changes locally. git remote add upstream https://github.com/kong/kong-ee
git fetch upstream master
git worktree add -d .worktree/cherry-pick-13836-to-master-to-upstream upstream/master
cd .worktree/cherry-pick-13836-to-master-to-upstream
git checkout -b cherry-pick-13836-to-master-to-upstream
ancref=$(git merge-base d4ab528fa2414d996861a43e58406c02b4978157 c77a50c7a859055b0c01251285acf6513abc2dda)
git cherry-pick -x $ancref..c77a50c7a859055b0c01251285acf6513abc2dda |
Summary
KAG-5755
Checklist
changelog/unreleased/kong
orskip-changelog
label added on PR if changelog is unnecessary. README.mdIssue reference
Fix #[issue number]