You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Buffer envelopes after resolving broken project states #1787
If the upstream responds with broken states, Relay attempts to reuse old caches as long as possible. However, if there is no cache, Relay immediately drops envelopes. Our stability SLO suggests that we should buffer envelopes instead until they timeout.
To achieve this behavior, we will have to:
Leave envelopes in the queue when states are invalid
Expire queued envelopes when a timeout has been reached
Check whether there should be a timeout on the envelopes or rather on the project state
Activity
jan-auer commentedon Jan 27, 2023
One an invalid state has been resolved, it's passed back into the project cache here, which triggers a flush of all queues:
relay/relay-server/src/actors/project.rs
Lines 896 to 904 in 1acb19e
This internally invokes
check_envelope, which eventually rejects the envelope:relay/relay-server/src/actors/project.rs
Lines 436 to 440 in 1acb19e