Amasterov/injection probability 17#898
Amasterov/injection probability 17#898a-masterov wants to merge 12 commits intoREL_17_STABLE_neonfrom
Conversation
… into amasterov/injection_probability-2
…tion-probability-17
b2c9d45 to
50fdd25
Compare
|
Same here: Can’t you install an SMGR that has these changes builtin, instead of modifying PG's code? It seems quite simple to me to have one that has these interrupts but otherwise lets that other SMGR resolve the requests. |
We need an arbitrary check for interrupts, not just an error in SMGR itself. |
|
If you need arbitrary CFI, couldn't you use the hook that's already being installed? See ProcessInterruptsCallback, which is called every time CHECK_FOR_INTERRUPTS calls into ProcessInterrupts(). It won't exactly always get called whenever execution reaches CFI, but you can mostly force that with e.g. a high-frequency timer, or by setting InterruptsPending in your callback. |
We need to test SMGR failures.
This PR adds two features:
SMGR_API injection point in CHECK_FOR_INTERRUPTS – Injection can run even when there are no pending interrupts, and is gated by an
inside_smgr_apicounter for use by Neon’s SMGR layer.Probability-based injection in the injection_points extension – New error-prob- action so injection points can raise an ERROR with a configurable probability (e.g. for fault-injection tests).
Reference: https://databricks.atlassian.net/browse/LKB-6690