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

Making RPC Upgrade mode reloadable. #11144

Merged
merged 3 commits into from
Nov 1, 2021
Merged

Making RPC Upgrade mode reloadable. #11144

merged 3 commits into from
Nov 1, 2021

Conversation

angrycub
Copy link
Contributor

@angrycub angrycub commented Sep 7, 2021

Almost all of the TLS settings are reloadable, but changes to RPC upgrade mode don't trigger TLS configuration reloads. This PR adds the value to the ShouldReload function.

@angrycub
Copy link
Contributor Author

angrycub commented Sep 7, 2021

I have a long reproducer script in this gist.

@angrycub
Copy link
Contributor Author

angrycub commented Sep 7, 2021

🧐 I can't explain the test failures, but they don't appear to relate to this code.

@jrasell
Copy link
Member

jrasell commented Sep 8, 2021

🧐 I can't explain the test failures, but they don't appear to relate to this code.

They were flakes. I reran the build and it passed just fine.

Copy link
Member

@schmichael schmichael left a comment

Choose a reason for hiding this comment

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

Looks good. Turning off RPC Upgrade Mode will not kill plaintext connections as it ideally should, but this is still a nice progressive enhancement. We also need to fix the race conditions around config reloading. :( Filed #11186 to track this

@@ -1291,6 +1291,48 @@ func TestServer_ShouldReload_ShouldHandleMultipleChanges(t *testing.T) {
}
}

func TestServer_ShouldReload_ReturnTrueForRPCUpgradeModeChanges(t *testing.T) {
t.Parallel()
assert := assert.New(t)
Copy link
Member

Choose a reason for hiding this comment

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

Just fyi we're trying to get away from this package-shadowing naming style. Not a blocker.

command/agent/agent.go Outdated Show resolved Hide resolved
- remove spurious comment
- switch to require(t,...) form for test.
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants