Skip to content
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

Auto start Axon Server tenant components #160

Merged
merged 6 commits into from
Nov 22, 2023

Conversation

schananas
Copy link
Contributor

The fix is rather simple; just start Axon Server components when the factory produces them.
Timing is always safe, as factory involvement will happen only after the main MultiTenant component is registered to configuration and ready to use.

Unfortunately, it is not possible to write a test as component is created inside factory method, therefore it is not mockable.
Also none of produce components exposes something like isStarted() method where we could check if start was invoked.

Passed manual testing.

dependabot bot and others added 4 commits November 6, 2023 22:37
Bumps [org.apache.maven.plugins:maven-javadoc-plugin](https://github.com/apache/maven-javadoc-plugin) from 3.6.0 to 3.6.2.
- [Release notes](https://github.com/apache/maven-javadoc-plugin/releases)
- [Commits](apache/maven-javadoc-plugin@maven-javadoc-plugin-3.6.0...maven-javadoc-plugin-3.6.2)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-javadoc-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
…e.maven.plugins-maven-javadoc-plugin-3.6.2

Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.6.0 to 3.6.2
@schananas schananas added this to the Release 4.9.2 milestone Nov 15, 2023
@schananas schananas self-assigned this Nov 15, 2023
@schananas schananas requested a review from smcvb November 15, 2023 12:51
@smcvb smcvb changed the base branch from main to axon-multitenancy-4.9.x November 16, 2023 08:36
…trieving the MultiTenantEventProcessorControlService from a Component.

Due to this, its lifecycle methods should be invoked.
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@schananas schananas requested a review from smcvb November 22, 2023 09:51
Copy link
Member

@smcvb smcvb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My concerns have been addressed, hence I'm approving this pull request.

@smcvb smcvb merged commit c22ddd3 into axon-multitenancy-4.9.x Nov 22, 2023
7 checks passed
@smcvb smcvb deleted the bugfix/start-tenant-components branch November 22, 2023 15:47
smcvb added a commit that referenced this pull request Nov 22, 2023
Add start-notice to all segment factory interfaces

#160
smcvb added a commit that referenced this pull request Nov 22, 2023
Expand samples slightly, by using the markdown code block syntax, with
classes in them, adding comments when applicable.

#160
@smcvb smcvb modified the milestones: Release 4.10.0, Release 4.9.3 Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants