Skip to content

Add the injection point for testing SMGR v18#902

Draft
a-masterov wants to merge 4 commits intoREL_18_STABLE_neonfrom
amasterov/add-smgr-injpoint-18
Draft

Add the injection point for testing SMGR v18#902
a-masterov wants to merge 4 commits intoREL_18_STABLE_neonfrom
amasterov/add-smgr-injpoint-18

Conversation

@a-masterov
Copy link

@a-masterov a-masterov commented Feb 26, 2026

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_api counter 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

@a-masterov a-masterov requested a review from HaoyuHuang March 3, 2026 15:05
@a-masterov a-masterov marked this pull request as ready for review March 3, 2026 15:07
@mmeent-databricks
Copy link

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 and otherwise lets that other SMGR resolve the requests.

@a-masterov a-masterov marked this pull request as draft March 11, 2026 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants