GitHub user PragmaTwice added a comment to the discussion: Is lua script atomic execution guaranteed?
When `lua-strict-key-accessing` is enabled, in lua script you can only access keys that you explicitly declared on the command arguments, e.g. `EVAL "... ONLY key1 and key2 is accessible here" 2 key1 key2`. (Note that redis also has such requirement.) Kvrocks has fine-grained key locks which will ensure that no other commands that accesses `key1` and `key2` will be executed when this EVAL is executing. However, `EVAL key1 key2` can be executed simultaneously with `EVAL key3` or `SET key3`. GitHub link: https://github.com/apache/kvrocks/discussions/3489#discussioncomment-16947347 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
