Skip to content

Cancelling registration on single MultiTenantAwareComponent cancels registrations on all and closes AxonServer connection #194

@oleborne

Description

@oleborne

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

  1. start a app using the Multi-Tenancy Extension connected to a AxonServer
  2. register MultiTenantAwareComponent against the TenantProvider (auto-configured to AxonServerTenantProvider)
  3. 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

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions