Repository navigation
hds: reset specifier_hash on remoteClose - #17378
Conversation
Signed-off-by: Ilya Lobkov <[email protected]>
|
Hi @lobkovilya, welcome and thank you for your contribution. We will try to review your Pull Request as quickly as possible. In the meantime, please take a look at the contribution guidelines if you have not done so already. |
|
Hello from Kuma community 👋 We've run into this issue while testing various resilient scenarios, playing around with network delays and reconnections. The problem could be reproduced using cc: @bchatelard |
|
Thanks for the fix! Do you think you could add a regression test to make sure this won't break in the future? |
|
That's would be interesting to try to reproduce the problem using a test, let's see if I can do so in a reasonable amount of time. I have a couple of questions:
|
|
Yeah I think that's the right test file. The failure seems to be coverage flakes, I wouldn't worry about it at this point |
Signed-off-by: Ilya Lobkov <[email protected]>
|
@snowp I was able to reproduce the problem using the test, please take a look |
snowp
left a comment
There was a problem hiding this comment.
Thanks, just a few comments. Seems like CI is failing, can you take a look?
|
|
||
| // Tests Envoy keeps sending EndpointHealthResponses after the HDS server reconnection | ||
| TEST_P(HdsIntegrationTest, SingleEndpointHealthyHttpHdsReconnect) { | ||
| XDS_DEPRECATED_FEATURE_TEST_SKIP; |
There was a problem hiding this comment.
I'm not sure, every test in the hds_integration_test has this macro. Probably HDS doesn't work with V2?
There was a problem hiding this comment.
Seems like it uses some deprecated fields in the setup, so it would need some small refactor to fix. No need to do in this PR
| checkCounters(1, 2, 1, 0); | ||
|
|
||
| // Simulate disconnection of HDS server | ||
| hds_fake_connection_->encodeProtocolError(); |
There was a problem hiding this comment.
maybe just close the stream here?
Signed-off-by: Ilya Lobkov <[email protected]>
Signed-off-by: Ilya Lobkov <[email protected]>
Signed-off-by: Ilya Lobkov <[email protected]>
Signed-off-by: Ilya Lobkov [email protected]
Commit Message: when Envoy is reconnected to the management server it may receive the same
HealthCheckSpecifier. Sincespecifier_hash_is equal to the newhashEnvoy won't callenableTimerand thusEndpointHealthResponsewon't be sent after reconnect at all. That's why in theonRemoteClosethisspecifier_hash_has to be reset.Additional Description: N/A
Risk Level: low
Testing: manual
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A