Open afsalthaj opened 1 month ago
I was investigating myself if this something can be fixed (and thereby learn more what's going on) but, it looks like it needs dedicated time and therefore raising this ticket.?
Because these three happened in before it hangs for subsequent invocation request.
I can confirm this happened again after component updates. But I think further investigation of when exactly it hangs, should be part of solving the ticket.
- Could anyone remind me what happens (or should happen) if I update the worker with a component that doesn't exist?
This should be a failed update attempt and the worker should continue running on the previous version, but we have no tests for this. I suspect this is the primary problem here.
- Likewise, what happens if I lower the version of the component for an existing worker?
That should work, but we could have a dedicated test for it.
- Is it ok, that we have pending state forever for component updates as shown in the example in the PR description?
No if the worker's invocation loop works properly, it consumes the pending invocations and attempts to do them, then they either become successful or failed.
Here is what I found (and investigating myself on what's going on)
I had a shopping-cart.wasm, which I added using golem-cli Added a worker
x
Tried to invoke acheckout
function with that worker, and see if it works, and it works. Tried to get the metadata and it works Updated the component again and bumped up the version versions, a couple of times Then I tried to update the worker with various component versions. and here is is the life cycleThen I tried to do checkout function again, and it started producing gateway errors (probably timeouts)