Add Ability to Disable Replication Status Endpoints in Listener Configuration#23547
Merged
marcboudreau merged 21 commits intomainfrom Oct 11, 2023
Merged
Conversation
|
Build Results: |
|
CI Results: |
13583de to
7bbd5bb
Compare
schavis
requested changes
Oct 10, 2023
Comment on lines
205
to
207
Contributor
There was a problem hiding this comment.
Suggested change
| - `disable_replication_status_endpoints` `(bool: false)` - If set true, the | |
| replication status endpoints will be disabled for requests sent to this | |
| listener. | |
| - `disable_replication_status_endpoints` `(bool: false)` - Disables replication | |
| status endpoints for the configured listener when set to `true`. |
Style correction: write in active voice, avoid "this" as a pronoun
Contributor
Author
There was a problem hiding this comment.
Thanks, this reads much better.
peteski22
reviewed
Oct 10, 2023
http/util.go
Outdated
Contributor
There was a problem hiding this comment.
Just needs a go doc comment here 😄
Contributor
Author
|
@schavis, I've make the edit you suggested. |
* remove arg * changelog
* ensure nodes are asked to reload audit files on SIGHUP * added changelog
* redaction should only work for TCP listeners, also fix bug that allowed custom response headers for unix listeners * fix failing test * updates from PR feedback
schavis
approved these changes
Oct 11, 2023
added 10 commits
October 11, 2023 13:20
… to refactored parsing code
mladlow
reviewed
Mar 11, 2024
| @@ -0,0 +1,3 @@ | |||
| ```release-note:feature | |||
| config/listener: allow per-listener configuration setting to disable replication status endpoints. | |||
Contributor
There was a problem hiding this comment.
@marcboudreau next time please use the correct new feature formatting for new features in the changelog - this also applies to #23534 and #23740. Probably there should be only a single changelog entry introducing the feature as a whole.
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.

This PR adds the ability to parse a configuration setting in the TCP listener configuration section so that the value can be stored in the http.Request context. This will allow the enterprise version implementation of the replication status endpoints:
sys/replication/statussys/replication/dr/statussys/replication/performance/statusto react accordingly.