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

tests(clustering): enable rpc sync on test #14171

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

lhanjian
Copy link
Contributor

@lhanjian lhanjian commented Jan 15, 2025

Summary

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-5561

@github-actions github-actions bot added the cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee label Jan 15, 2025
describe("in hybrid mode" .. " rpc_sync=" .. rpc_sync, function()
local route
local plugin_name = "correlation-id"
local bp, db = helpers.get_db_utils(strategy, { "plugins", "workspaces", })
Copy link
Contributor Author

Choose a reason for hiding this comment

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

copy from LINE34

@pull-request-size pull-request-size bot added size/M and removed size/S labels Jan 15, 2025
@lhanjian lhanjian changed the title Test/open rpc sync on tests(clustering): enable rpc sync on test Jan 15, 2025
@lhanjian lhanjian marked this pull request as ready for review January 15, 2025 09:19
@lhanjian lhanjian force-pushed the test/open_rpc_sync_on branch from 9808629 to b28f375 Compare January 15, 2025 09:20
spec/03-plugins/11-correlation-id/02-schema_spec.lua Outdated Show resolved Hide resolved
spec/03-plugins/11-correlation-id/02-schema_spec.lua Outdated Show resolved Hide resolved
lazy_setup(function()
-- copy from outer lazy_setup, to avoid database reused.
Copy link
Contributor

Choose a reason for hiding this comment

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

Need more words to explain why and how it works.

@lhanjian
Copy link
Contributor Author

image
This line has no change

lazy_setup(function()
-- if the database is not cleared, the residual RPC connection information between different tests will cause the test to fail.
Copy link
Contributor

Choose a reason for hiding this comment

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

long line, should break it into two lines.

Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have any other simple way to clear the db?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Clearing data and then recreating a new database is more dirty.

@lhanjian lhanjian force-pushed the test/open_rpc_sync_on branch from d55beef to b9bde94 Compare January 16, 2025 03:03
@lhanjian lhanjian requested a review from chobits January 16, 2025 06:40
@lhanjian lhanjian force-pushed the test/open_rpc_sync_on branch from 76f5bac to 579a57c Compare January 17, 2025 09:20
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 size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants