-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Receive: fix capnproto replication in endless loop #8491
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
base: main
Are you sure you want to change the base?
Receive: fix capnproto replication in endless loop #8491
Conversation
|
Reading code a little bit and will get back to it soon. Sorry for the delay. Could you please add the DCO?
Where did you do it? In some (internal) fork of yours or some ad-hoc code? I'm interested to know this because I tried many different ways of reproducing this bug. |
b430553 to
d1520f2
Compare
I checked on an internal fork, lowering the timeout for bootstrap to 1ms. DCO was added and a slightly cleaner fix applied, however approach taken by @pedro-stanaka may be better. |
|
Is there some pull request I can't find? https://github.com/thanos-io/thanos/pulls/pedro-stanaka there's nothing here |
Signed-off-by: Michał Mazur <[email protected]>
d1520f2 to
6b642ff
Compare
I have been referring to: receive: Recreate Cap’n Proto client when bootstrap fails (port of The fix is rewritten to synchronously resolve the client. |
|
Please see my related PR/comment here: #8534 (comment) |
Changes
Recreate Cap'n Proto client in case of failed bootstrap.
Verification
There are no new tests.
The issue was reproduced by artificially lowering the context timeout. The forwarding didn't stuck for the fixed version.