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
Multitenancy support #754
Comments
Errrm ... @Sanne? This issue might have slipped through the cracks, since I worked on multitenancy, and then much later Sanne did the |
I coincidentally just started looking at vertx 4.1 and its new pool, with the plan of removing our To prevent such regressions we need to add a test covering Multitenancy though. |
Well, there is a test ( |
I will have a look |
I also looked at this test, but it is not testing multitenancy . The custom pool (as shown below) you implemented in your test is not creating different pool per tenant:
|
Yeah... It's a very simple test |
We only use it to convert a `Future` to a `CompletionStage` but there is already a `Future#toCompletionStage`. No reason to keep it around.
We only use it to convert a `Future` to a `CompletionStage` but there is already a `Future#toCompletionStage`. No reason to keep it around.
The test for multitenancy needs to be able to create additional databaseses but it needs the right permissions if the user starts Postgres without Docker/Podman.
This way we can use them with `@AfterClass` and `@BeforeClass` if we need it for a test
A small optimization
The test for multitenancy needs to be able to create additional databaseses but it needs the right permissions if the user starts Postgres without Docker/Podman.
This way we can use them with `@AfterClass` and `@BeforeClass` if we need it for a test
Hi,
according to the documentation, to add support for multitenancy, the following must be done:
So, regarding (1), as you recommend, I tried to extend the DefaultSqlClientPool and create a pool for each tenant.
It seems that I have a big misunderstanding. I need a pool per URI, and keep them into a map with the tenant-id as the key, so the getTenantPool will return the correct pool for the tenant.
But I cannot use the createPools(URI) to create the pool per tenant because the ThreadLocalPoolManager is not public, and so I have no access to this class.
I would very appreciate some lights how to do it.
Thanks.
The text was updated successfully, but these errors were encountered: