box: fix crash with transactional trigger on system space#12138
Merged
locker merged 1 commit intotarantool:masterfrom Dec 15, 2025
Merged
box: fix crash with transactional trigger on system space#12138locker merged 1 commit intotarantool:masterfrom
locker merged 1 commit intotarantool:masterfrom
Conversation
locker
approved these changes
Dec 10, 2025
xuniq
approved these changes
Dec 15, 2025
Currently transactional trigger on space `_space` causes crash on DDL which changes record for `_space` itself in `_space`. In particular this happens on recovery. Similarly there is a crash on trigger on space `_index` and changing record for `_index` itself in `_index`. The issue is we first commit the DDL which destroys the old space and then run transactional trigger which refers to the old space. Let's do the opposite, first run transactional trigger. Closes tarantool#11766 NO_DOC=bugfix
07bc6e3 to
fd84205
Compare
Member
|
Cherry-picked to 3.6, 3.5, 3.3, 3.2. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently transactional trigger on space
_spacecauses crash on DDL which changes record for_spaceitself in_space. In particular this happens on recovery. Similarly there is a crash on trigger on space_indexand changing record for_indexitself in_index.The issue is we first commit the DDL which destroys the old space and then run transactional trigger which refers to the old space. Let's do the opposite, first run transactional trigger.
Closes #11766