Hi folks!
I've began noticing tons of "context canceled" errors on Datadog traces coming from the dispatch service.
Is this expected?
Unsure if this has been asked before, so apologies if this information is already available elsewhere.
We do not have dispatch cluster enabled, in case that's relevant
y
yetitwo
05/22/2025, 6:21 PM
hmm... not having dispatching enabled and still seeing those errors is kinda weird. however, the dispatch service is an internal implementation detail with a whole bunch of optimization including hedging, and iirc that uses a cancellation mechanism. if you're not seeing other cause for concern in your cluster i wouldn't worry about it.
v
vroldanbet
05/22/2025, 6:23 PM
that's expected. SpiceDB still runs subproblems concurrently, and cancels them when they are no longer needed, so it shows up in your traces
vroldanbet
05/22/2025, 6:23 PM
it's a mechanism to spare unnecessary computation / DB access
g
gsimas
05/23/2025, 3:57 PM
Aaah that makes a ton of sense. I was hoping that was it but couldn't find any confirmation that it indeed was cancelling it.