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

[NET-7557] Backport of Fix to not create a watch to Internal.ServiceDump when mesh gateway is not used into release/1.14.x #20731

Conversation

zalimeni
Copy link
Member

@zalimeni zalimeni commented Feb 26, 2024

Description

Manual backport of #20168 to release/1.14.x to facilitate upgrade to supported Consul version for customers currently behind 1.15.

Also includes backports of 2 unrelated CI-only PRs needed to unblock CI.

This backport is a direct cherry-pick of the squashed 1.15.x backport commits for:

Testing & Reproduction steps

  • CI continues to pass

PR Checklist

  • updated test coverage
  • external facing docs updated
  • appropriate backport labels added
  • not a security concern

@zalimeni zalimeni force-pushed the backport/dhiaayachi/fix-service-dump-watch-wanfed/release-1.14.x branch from 5dbd414 to 301358b Compare February 27, 2024 13:59
…mesh gateway is not used into release/1.14.x

This add a fix to properly verify the gateway mode before creating a watch specific to mesh gateways. This watch have a high performance cost and when mesh gateways are not used is not used.

This also adds an optimization to only return the nodes when watching the Internal.ServiceDump RPC to avoid unnecessary disco chain compilation. As watches in proxy config only need the nodes.

* backport of commit b0ce20b
* backport of commit 3d4bde0
* backport of commit b2c7724
* backport of commit e7ab4d4
* backport of commit d00d9c5
* backport of commit b2db3d5
* backport of commit 50fb45a
* backport of commit 7b41a61
* backport of commit 2fa0e0a
* backport of commit 88849c9
* backport of commit 4ac54f1
* backport of commit 2a9dfc3
* Fix tests for backport.

---------

Co-authored-by: Dhia Ayachi <[email protected]>
Co-authored-by: Derek Menteer <[email protected]>
@zalimeni zalimeni force-pushed the backport/dhiaayachi/fix-service-dump-watch-wanfed/release-1.14.x branch from 301358b to 792c6d8 Compare February 27, 2024 14:27
@zalimeni zalimeni marked this pull request as ready for review February 27, 2024 16:09
@zalimeni
Copy link
Member Author

Tests look to be passing except for the compatibility-integration-test, which I also can't seem to get passing without the bugfix here - so I suspect it may be truly broken ATM. I'll rerun a few more times and investigate if it doesn't go green.

@zalimeni zalimeni changed the title Backport of Fix to not create a watch to Internal.ServiceDump when mesh gateway is not used into release/1.14.x [NET-7557] Backport of Fix to not create a watch to Internal.ServiceDump when mesh gateway is not used into release/1.14.x Feb 27, 2024
@zalimeni zalimeni requested a review from a team as a code owner March 11, 2024 15:41
@zalimeni zalimeni force-pushed the backport/dhiaayachi/fix-service-dump-watch-wanfed/release-1.14.x branch from fd9f21c to bd1d6e2 Compare March 11, 2024 19:11
These tests fail on an unmodified version of release/1.14.x, indicating
they require later fixes that were not backported to this branch in
order to pass. Disabling for now to enable patch application and
testing.
@zalimeni zalimeni force-pushed the backport/dhiaayachi/fix-service-dump-watch-wanfed/release-1.14.x branch from bd1d6e2 to 5e78a50 Compare March 11, 2024 19:12
@zalimeni zalimeni merged commit ca318f7 into release/1.14.x Mar 11, 2024
88 checks passed
@zalimeni zalimeni deleted the backport/dhiaayachi/fix-service-dump-watch-wanfed/release-1.14.x branch March 11, 2024 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants