-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
Sporadic error call on null client
for first RPC call after upgrading from 3.0.0-alpha.30 to 3.0.1-alpha.1, ~1% chance
#572
Comments
tl;dr: There are at least two commits that break this. I have bisected this and found that commit 2815a6a introduces the error. 91bffc5 (which merged 2815a6a, other commits of that MR are docs changes) nets me "call on null client" errors, Reverting 91bffc5 on current main (2f9aa4f) is free of conflicts but fails to compile:
I fixed it like so, but this is a pure guess and I have not validated anything about this and have no idea what I'm doing: diff --git a/rpc/rpc.go b/rpc/rpc.go
index 48b3e86e2d2d37c2c1285036a123a4a130155cda..5fdb3cbdadd51dcf8b23172a40e33339a548359b 100644
--- a/rpc/rpc.go
+++ b/rpc/rpc.go
@@ -375,7 +375,7 @@ func (bc bootstrapClient) Recv(ctx context.Context, r capnp.Recv) capnp.Pipeline
}
func (bc bootstrapClient) Brand() capnp.Brand {
- return bc.c.State().Brand
+ return bc.c.Snapshot().Brand()
}
func (bc bootstrapClient) Shutdown() { However this now nets me an even higher error rate than the original change, so another commit between the bit that fixed it and current main must introduce a similar error. When starting to rebase, the 2nd merge cab1c2e already reintroduced the error, and reverting it is not possible due to major changes in I stopped at that point, would rather have a reproducer on top of main and work backwards from there. |
Running tests on main nets me the following:
So this is probably related to |
@mologie Firstly, thank you so much for your help on this issue. Can you try resolving the capability ( As far as the underlying issue is concerned, Zenhack suggested that his prior work on Please feel free to join our Matrix community if you need any support. I'm happy to assist however I can. |
After updating to 3.0.1-alpha.1 from 3.0.0-alpha.30, a load test of mine now fails occasionally with error
schema/avas/corehost/corehost.capnp:CoreFactory.buildInfo: call on null client
.I am trying to build a minimal reproducer to narrow this down and post it here. (But that might take some time, I'm deferring to update for now.) In the meantime I'd leave the following details here in case someone else stumbles over the issue:
Logger
.The affected code is as simple as the following after a successful connection:
The text was updated successfully, but these errors were encountered: