AxonFramework / extension-multitenancy

Axon Framework extension providing handles to support multi tenancy with distinct buses and stores per tenant.
Apache License 2.0
10 stars 2 forks source link

Remove tokens when a tenant is removed. #196

Closed gklijs closed 2 months ago

gklijs commented 2 months ago

Basic information

Steps to reproduce

Create a tennent, remove and create a tennent with the same name. While the projections and events are removed, event processing will be 'stuck' where it was left since the tokens aren't removed.

Expected behaviour

Tokens are removed in the stopAndRemoveTenant method of the MultiTenantEventProcessor

Actual behaviour

Event processors are shut down, but the related tokens aren't deleted.

schananas commented 2 months ago

Extension is not responsible of deleting anything, its up to user to clean up any tenant data, such as events, contexts, tokens etc. Therefor closing this ticket

gklijs commented 2 months ago

Shouldn't the method than be renamed to just stopTenant?