-
Notifications
You must be signed in to change notification settings - Fork 380
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
RFC how to handle failures at esi_level > 0 #3264
Comments
We hashed this at bugwash today, and various things came up: There are two distinct cases: A) The subrequest have pushed bytes into VDP but fails before it's done. This only happens if the subrequest is streaming and the backend fails. This can only be be avoided by not streaming the subrequest. Not sure what our error handling is today, or indeed what it should be. Probably ought to abort the entire delivery, as there may be strange partial content in the delivery. B) The subrequest has not yet pushed any bytes into VDP. In this case the parent could have exeception handling. Currently we just ignore and move on. We could implement ESI's Using See also: ESI's |
Next step is when somebody writes some code. |
I'd like to briefly talk about this ticket again during bugwash: are we happy with the |
homework submission: With #4053 fixed by cffda50, I think all that is missing at this point is VCL control over the flag. With that in place, I think, one could implement an onerror fallback from vcl also if no onerror attribute is present. Do I overlook anything or would we then have all cases covered? |
bugwash:
|
I am going to merge #3242 now because I think it qualifies for "trivial fix", I had opened it during the freeze and also it has one approval.
There is an important aspect to retain from that ticket: Can we / do we want to improve error reporting for the case that an ESI subrequest fails?
Right now, we just drop that segment, such that parts of the ESI-generated page become missing, which I think is the worst of all options.
Suggestions from #3242 are:
That canned red flag would have a plain and a gzip variant, depending on the compression context, and would update the parent's CRC etc.
The text was updated successfully, but these errors were encountered: