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

feat(clustering): do not enable kong.sync.v2 when connecting dp is older than cp #14217

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

bungle
Copy link
Member

@bungle bungle commented Jan 23, 2025

Summary

There is a compatibility feature in v1 sync. While building compatibility layer for v2 sync (Lua Control Plane), we found that it is making things too complicated. Thus we decided that when DP version is older than CP version, we can just fallback to v1 sync until DP is upgraded to same level and it can utilize the v2 sync again.

This code here hides the CP capability of kong.sync.v2 when older (than the CP) DP connects to it. The DPs can already fallback in that scenario, so this code is just for the control plane.

I don't think this needs a changelog. It is not a fix. It is very tiny too, and the first time we ever need this is when we release 3.11.

KAG-6240

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

@github-actions github-actions bot added core/clustering cherry-pick kong-ee schedule this PR for cherry-picking to kong/kong-ee labels Jan 23, 2025
@bungle bungle force-pushed the feat/clustering-no-incremental-for-older-dp branch from e5d7b7f to 32d93cc Compare January 23, 2025 18:02
@chronolaw chronolaw changed the title chore(clustering): do not enable kong.sync.v2 when connecting dp is older than cp feat(clustering): do not enable kong.sync.v2 when connecting dp is older than cp Jan 23, 2025
@bungle bungle force-pushed the feat/clustering-no-incremental-for-older-dp branch from 32d93cc to acec33e Compare January 24, 2025 14:03
@pull-request-size pull-request-size bot added size/M and removed size/S labels Jan 24, 2025
@bungle bungle force-pushed the feat/clustering-no-incremental-for-older-dp branch 5 times, most recently from 0211e99 to f217184 Compare January 31, 2025 11:39
@pull-request-size pull-request-size bot added size/L and removed size/M labels Jan 31, 2025
@bungle bungle force-pushed the feat/clustering-no-incremental-for-older-dp branch from f217184 to 4e1c385 Compare January 31, 2025 11:55
Copy link
Member

@samugi samugi left a comment

Choose a reason for hiding this comment

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

lgtm

kong/clustering/rpc/manager.lua Outdated Show resolved Hide resolved
kong/clustering/rpc/manager.lua Show resolved Hide resolved
@bungle bungle force-pushed the feat/clustering-no-incremental-for-older-dp branch from 4e1c385 to e618817 Compare February 3, 2025 09:45
@bungle bungle merged commit 36e329e into master Feb 3, 2025
26 checks passed
@bungle bungle deleted the feat/clustering-no-incremental-for-older-dp branch February 3, 2025 17:56
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/L skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants