-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
VTAdmin: Fix serve-handler's path-to-regexp dep and add default schema refresh #16778
Merged
Conversation
This file contains 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
… refresh Signed-off-by: Matt Lord <mattalord@gmail.com>
mattlord
added
Component: VTAdmin
VTadmin interface
Backport to: release-18.0
Needs to be back ported to release-18.0
Backport to: release-19.0
Needs to be back ported to release-19.0
Backport to: release-20.0
Needs to be backport to release-20.0
labels
Sep 13, 2024
mattlord
requested review from
ajm188,
notfelineit and
deepthi
as code owners
September 13, 2024 12:58
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
vitess-bot
bot
added
NeedsBackportReason
If backport labels have been applied to a PR, a justification is required
NeedsDescriptionUpdate
The description is not clear or comprehensive enough, and needs work
NeedsIssue
A linked issue is missing for this Pull Request
NeedsWebsiteDocsUpdate
What it says
labels
Sep 13, 2024
mattlord
removed
NeedsDescriptionUpdate
The description is not clear or comprehensive enough, and needs work
NeedsWebsiteDocsUpdate
What it says
NeedsBackportReason
If backport labels have been applied to a PR, a justification is required
labels
Sep 13, 2024
mattlord
added
Type: Bug
and removed
NeedsIssue
A linked issue is missing for this Pull Request
labels
Sep 13, 2024
frouioui
approved these changes
Sep 13, 2024
notfelineit
reviewed
Sep 13, 2024
@@ -43,7 +43,7 @@ vtadmin \ | |||
--alsologtostderr \ | |||
--rbac \ | |||
--rbac-config="${script_dir}/../vtadmin/rbac.yaml" \ | |||
--cluster "id=${cluster_name},name=${cluster_name},discovery=staticfile,discovery-staticfile-path=${script_dir}/../vtadmin/discovery.json,tablet-fqdn-tmpl=http://{{ .Tablet.Hostname }}:15{{ .Tablet.Alias.Uid }}" \ | |||
--cluster "id=${cluster_name},name=${cluster_name},discovery=staticfile,discovery-staticfile-path=${script_dir}/../vtadmin/discovery.json,tablet-fqdn-tmpl=http://{{ .Tablet.Hostname }}:15{{ .Tablet.Alias.Uid }},schema-cache-default-expiration=1m" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
notfelineit
approved these changes
Sep 13, 2024
vitess-bot
pushed a commit
that referenced
this pull request
Sep 13, 2024
…a refresh (#16778) Signed-off-by: Matt Lord <mattalord@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Backport to: release-18.0
Needs to be back ported to release-18.0
Backport to: release-19.0
Needs to be back ported to release-19.0
Backport to: release-20.0
Needs to be backport to release-20.0
Component: VTAdmin
VTadmin interface
Type: Bug
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.
Description
Firstly, this is a follow-up to #16770 and corrects the
path-to-regexp
dependency forserve-handler
(the core HTTP request handler invtadmin-web
) — it should have been upgraded to3.3.0
there rather than8.0.0
. Without this fix it failed to handle incoming requests after starting up:We need to backport this all the way to v18 as #16770 was backported to v18.
We also add a default schema cache expiration time to the local examples. Users have previously asked why the schema display in VTAdmin does not appear to refresh, and they've asked HOW they can change that behavior (w/o any value specified it never refreshes). This change addresses both issues.
Related Issue(s)
Checklist