Unclear behavior of test_create_space
The following discussion from !767 (merged) should be addressed:
-
@d.rodionov started a discussion: (+1 comment)
Hmm, I think, the whole test_create_space replaces access check that is invoked for create table op. It doesnt feel good or bad, this just quite obscure. Alternative can be to attempt creation from admin for validation and leave access control check for other machinery.
It is weird to say, but now it feels like the whole acl thing could've been implemented in this try/rollback fashion
I tried to look at whats happening but didnt find the answer quickly. For some reason test create space succeeds even if user doesnt have privilege to create a space. This is unexpected but actually the behavior we'd likely want to keep. Maybe execution of triggers is delayed to commit point which never happens. Though I see that on_replace_dd_space is actually called (according to my ebpf script). Mystery