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

prevent duplicate connectivity checks and only check /version endpoint #1425

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

zackattack01
Copy link
Contributor

Our connectivity log checkpointer currently appends /version to the end of various URLs stored in knapsack (device, control, trace, log) before issuing a GET request to determine connectivity status. This typically works but in some cases the URL is already configured with a path (e.g. /log/) causing a GET to /log/version. This changes two things:

  • reconstruct the full URLs into <scheme>://<host>:<port>/version to ensure we hit the correct path
  • track the URLs that we do hit so we can avoid hitting the same endpoint multiple times while the host is the same (currently trace and log hosts)

Copy link
Contributor

@RebeccaMahany RebeccaMahany left a comment

Choose a reason for hiding this comment

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

🔥

@zackattack01 zackattack01 added this pull request to the merge queue Oct 26, 2023
Merged via the queue into main with commit 836c7cf Oct 26, 2023
25 checks passed
@zackattack01 zackattack01 deleted the zack/update_connectivity_check branch October 26, 2023 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants