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

Fix Download Message Suppression Logic #307

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

smcvb
Copy link
Contributor

@smcvb smcvb commented Aug 25, 2023

This pull request resolves the logic around the suppressDownloadMessage toggle.
This toggle is set to true on any invocation or AxonServerConnectionFactory.Builder#routingServers.
However, this invocation is always invoked, hence the download message never shows.

To resolve this, this pull request checks whether:

  1. A single ServerAddress is provided, and
  2. If so, check whether it is a default ServerAddress of host localhost and port 8124.

Next to the default address validation, reintroduce the axon.axonserver.suppressDownloadMessage property check.
When set, retrieve the value set under this system property.

Lastly, a test is introduced to validate that the existing axonserver_download.txt is shared, yes/no.

- Check whether a customized ServerAddress is provided. If yes, toggle
suppressDownloadMessage
- Also check whether axon.axonserver.suppressDownloadMessage is set. If
yes, toggle suppressDownloadMessage
- Check to set the suppressDownloadMessage at build of the
AxonServerConnectionFactory
- Add ServerAddress#DEFAULT for ease in validation for download message
- Add tests validating the message is printed yes/no
- Remove setting suppressDownloadMessage on routingServers invocation
- Update copyright notices

#bug/download-message-suppression
@sonarcloud
Copy link

sonarcloud bot commented Aug 25, 2023

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 0 Code Smells

77.8% 77.8% Coverage
0.0% 0.0% Duplication

warning The version of Java (11.0.20) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

@smcvb smcvb merged commit 2df66f6 into connector-2023.1.x Aug 28, 2023
4 of 5 checks passed
@smcvb smcvb deleted the bug/download-message-suppression branch August 28, 2023 07:42
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.

None yet

2 participants