tarantool / tarantool/doc

Ban DDL operations from space on_replace triggers

Open
#2,758 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

2.10 behavior change server triggers
Dominant language
CSS
Stars
15
Forks
49
Avg merge
1d 13h
Merged PRs (30d)
3

Description

Product: Tarantool
Since: 2.10.0-beta2-167-ge4e65e406
Audience/target: dev
Root document:
https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_space/on_replace/
https://www.tarantool.io/en/doc/latest/book/box/triggers/
SME: @ EvgenyMekhanik

Details

Previously user can set function for space on_replace trigger,
which performs DDL operation. This may leads to tarantool crash,
that's why this patch bans DDL operations from on_replace triggers.
All this operations fails with error: "Space on_replace trigger
does not support DDL operations".
Requested by @EvgenyMekhanik in https://github.com/tarantool/tarantool/commit/e4e65e406b8f367fc9681d2b18a5961b63fd8de6.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the box_space/on_replace reference and the box triggers guide linked in the issue. Document that DDL operations from space on_replace triggers are rejected with the stated error, and verify the wording and scope against the requested Tarantool behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.