KNOX-2690 - Service URLs are missing from Knox UI after a temporary discovery failure#516
Merged
zeroflag merged 1 commit intoapache:masterfrom Jan 4, 2022
Merged
Conversation
2c6c629 to
398107c
Compare
Contributor
Author
smolnar82
approved these changes
Nov 30, 2021
Contributor
smolnar82
left a comment
There was a problem hiding this comment.
LGTM
Just to clarify: the removal of "some unused code" was deleting the public Map<String, Cluster> discover(GatewayConfig gatewayConfig, ServiceDiscoveryConfig discoveryConfig) method because it was only used in tests, right?
Cc. @pzampino
Contributor
Author
Yes. |
dishtikundra
added a commit
to acceldata-io/knox
that referenced
this pull request
Apr 14, 2025
…porary discovery failure (apache#516)" This reverts commit 67e7dd3.
dishtikundra
added a commit
to acceldata-io/knox
that referenced
this pull request
Apr 15, 2025
…porary discovery failure (apache#516)" This reverts commit 67e7dd3.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
When CM is intermittently unavailable, Knox still regenerates topologies with an empty service list. It should skip topology regeneration and log the error instead.
This patch fixes it by throwing an exception and avoiding the topology regeneration in case of a discovery failure.
The patch also removes some unused code around discovery.
How was this patch tested?
Changed
discovery-addressin/var/lib/knox/gateway/conf/descriptors/cdp-proxy.jsonto an invalid address.Checked the logs for the error message:
Verified that the URL-s are still present on the Knox UI.