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(tests): enable incremental sync for hybrid case #13746

Merged
merged 11 commits into from
Oct 16, 2024

Conversation

chobits
Copy link
Contributor

@chobits chobits commented Oct 12, 2024

Summary

  1. fix bug that the lmdb has been dropped then deleting old entity operation will trigger MDB_NOT found error

Checklist

  • The Pull Request has tests
  • A changelog file has been created under changelog/unreleased/kong or skip-changelog label added on PR if changelog is unnecessary. README.md
  • There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

Issue reference

Fix KAG-5551

@github-actions github-actions bot added the cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee label Oct 12, 2024
@chobits chobits marked this pull request as draft October 12, 2024 07:27
@chobits chobits force-pushed the fix/incremental-case-hybrid branch 2 times, most recently from fb66cea to 8a9e0f2 Compare October 14, 2024 07:41
@chobits chobits force-pushed the fix/incremental-case-hybrid branch 2 times, most recently from 88035b3 to 433e7b6 Compare October 15, 2024 07:49
@@ -73,7 +73,7 @@ end


-- XXX TODO: enable inc_sync = "on"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we fixed this test, should we remove the TODO comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, later i'll clear this pr

@chobits chobits force-pushed the fix/incremental-case-hybrid branch from 45550cd to 4924f14 Compare October 15, 2024 09:31
@chronolaw chronolaw self-requested a review October 15, 2024 23:18
@chronolaw chronolaw force-pushed the fix/incremental-case-hybrid branch 2 times, most recently from 5d14a93 to 3e25a80 Compare October 16, 2024 00:27
@chronolaw chronolaw force-pushed the fix/incremental-case-hybrid branch from bbdea01 to 783fe91 Compare October 16, 2024 02:40
@chronolaw chronolaw marked this pull request as ready for review October 16, 2024 02:40
@team-gateway-bot team-gateway-bot added the author/community PRs from the open-source community (not Kong Inc) label Oct 16, 2024
@chronolaw chronolaw merged commit 2f55282 into feat/incremental Oct 16, 2024
31 checks passed
@chronolaw chronolaw deleted the fix/incremental-case-hybrid branch October 16, 2024 02:57
dndx pushed a commit that referenced this pull request Oct 16, 2024
* fix(tests): enable inc sync for 01-sync_spec.lua

* fix(incremental): dont delete old entity from LMDB if we clear it already

* dont modify crud type even though we dont delete old entity from lmdb

* localize ns_delta.wipe

* localize ns_delta.wipe - part 2

* fix that cp will not init clustering

* refactor old_entity logic

* cp should always support full sync protocol

* Revert "cp should always support full sync protocol"

This reverts commit 6803958.

* Revert "fix that cp will not init clustering"

This reverts commit b84f261.

* Revert "fix(tests): enable inc sync for 01-sync_spec.lua"

This reverts commit 54d0f54.

---------

Co-authored-by: chronolaw <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author/community PRs from the open-source community (not Kong Inc) cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee core/clustering size/S skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants