Basic information
- Axon Framework version: 4.9.2
- JDK version: 17
- Multi-Tenancy Extension version: 4.9.2
- Complete executable reproducer if available (e.g. GitHub Repo): -
Steps to reproduce
- start a app using the Multi-Tenancy Extension connected to a AxonServer
- register
MultiTenantAwareComponent against the TenantProvider (auto-configured to AxonServerTenantProvider)
- cancel that registration
Expected behaviour
All the individual tenant registration from the concerned MultiTenantAwareComponent are cancelled.
No other side-effects:
- registrations for other
MultiTenantAwareComponent are maintained
- connection to Axon Server is maintained for all tenants
Actual behaviour
Registration for all MultiTenantAwareComponent are cancelled on all tenants, not just the concerned MultiTenantAwareComponent.
Connection for all tenants are closed on Axon Server.
See: https://github.com/AxonFramework/extension-multitenancy/blob/main/multitenancy-spring-boot-autoconfigure/src/main/java/org/axonframework/extensions/multitenancy/autoconfig/AxonServerTenantProvider.java#L204-L212