Skip to content

Choose required cartridge roles to wait at connect #159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Totktonada opened this issue Dec 2, 2021 · 2 comments · Fixed by #162
Closed

Choose required cartridge roles to wait at connect #159

Totktonada opened this issue Dec 2, 2021 · 2 comments · Fixed by #162
Assignees
Labels
enhancement New feature or request

Comments

@Totktonada
Copy link
Member

It is possible that tarantool already listen on a TCP port, but not all necessary functions are added/initialized by a role. See tarantool/crud#229 for example.

It is also possible that we don't grant all necessary permissions to a database user at the moment of connect (because snap/xlog is not fully applied at this moment).

I propose to add an option to wait until a set of user provided roles will be initialized and only after this consider the connection ready to use.

@sharonovd
Copy link

Or simply wait for RolesConfigured cartridge state

@Totktonada
Copy link
Member Author

Well, that sounds even better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
3 participants