Repository navigation
Conversation
|
The right tests are failing - I was wondering whether they depended on this behavior. Will check back on this later and see what needs to change. |
|
I took a look at the failures because this felt like it might overlap with what I'm working on right now to finish isolating sessions to each client. Not 100% sure but the failures might be due to the fact currently nested execs get their own servers (whereas function execs are special cased to reuse the same server). That seems like it could explain the errors. If so, fortunately part of the changes I'm working on results in those nested execs sharing the same server (among a lot of other simplifications). I'll see if I can cherry-pick your commit here and test it out. |
|
@sipsma Haha yeah that sounds like exactly it, what a nice coincidence! |
19f0aa6 to
af23109
Compare
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
Previously it was possible to start a dependent service in one module API call, and then use it again in a later call, only to have it fail because it cannot resolve the service address, even though it's still running. This happened because each invocation has its own client ID, and client IDs were used to build service addresses. This change brings service addresses into alignment with the recent change to uniq them by service ID instead of client ID. The overall effect is that services are deduped within a Dagger invocation, even across module calls. So with this change, the service will just stay running and be re-used by a later call, thanks to the grace period. Signed-off-by: Alex Suraci <[email protected]>
af23109 to
38556b6
Compare
|
This ended up getting cherry-picked into #7213 due to codependence between different changes, so closing out as it's merged |
Previously it was possible to start a dependent service in one module API call, and then use it again in a later call, only to have it fail because it cannot resolve the service address, even though it's still running. This happened because each invocation has its own client ID, and client IDs were used to build service addresses. (Repro)
This change brings service addresses into alignment with the recent change to uniq them by service ID instead of client ID. The overall effect is that services are deduped within a Dagger invocation, even across module calls. So with this change, the service will just stay running and be re-used by a later call, thanks to the grace period.