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

feat: expose the number of times and the delay between each attempt DHIS2 will try to connect to the database [DHIS2-16091] #15485

Merged
merged 7 commits into from
Nov 3, 2023

Conversation

tonsV2
Copy link
Contributor

@tonsV2 tonsV2 commented Oct 25, 2023

The goal of this PR is to expose this and this property through dhis2.conf.

The reason for exposing the properties is that when we're deploying on Kubernetes, the database and the core are launched at the same time but core runs out of retries before the database is ready.

@codecov
Copy link

codecov bot commented Oct 25, 2023

Codecov Report

Merging #15485 (52c401a) into master (60ec85e) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master   #15485      +/-   ##
============================================
+ Coverage     66.22%   66.23%   +0.01%     
- Complexity    31240    31244       +4     
============================================
  Files          3485     3485              
  Lines        129753   129772      +19     
  Branches      15141    15141              
============================================
+ Hits          85931    85959      +28     
+ Misses        36740    36735       -5     
+ Partials       7082     7078       -4     
Flag Coverage Δ
integration 49.78% <100.00%> (+0.01%) ⬆️
integration-h2 32.43% <100.00%> (+0.01%) ⬆️
unit 30.33% <21.05%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
.../org/hisp/dhis/external/conf/ConfigurationKey.java 100.00% <100.00%> (ø)
...va/org/hisp/dhis/datasource/DatabasePoolUtils.java 70.00% <100.00%> (+3.10%) ⬆️

... and 5 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 60ec85e...52c401a. Read the comment docs.

@tonsV2 tonsV2 changed the title feat: expose database "acquire connection retry attempts" through dhis2.conf feat: expose the number times and the delay between each attempt DHIS2 will try to connect to the database Nov 1, 2023
@tonsV2 tonsV2 changed the title feat: expose the number times and the delay between each attempt DHIS2 will try to connect to the database feat: expose the number of times and the delay between each attempt DHIS2 will try to connect to the database Nov 1, 2023
Copy link

sonarqubecloud bot commented Nov 1, 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

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@Philip-Larsen-Donnelly Philip-Larsen-Donnelly marked this pull request as draft November 1, 2023 06:49
@tonsV2 tonsV2 requested a review from DavidCKen November 3, 2023 07:13
@Philip-Larsen-Donnelly Philip-Larsen-Donnelly changed the title feat: expose the number of times and the delay between each attempt DHIS2 will try to connect to the database feat: expose the number of times and the delay between each attempt DHIS2 will try to connect to the database [DHIS2-16091] Nov 3, 2023
@tonsV2 tonsV2 marked this pull request as ready for review November 3, 2023 08:45
@tonsV2 tonsV2 merged commit b787c6d into master Nov 3, 2023
18 checks passed
@tonsV2 tonsV2 deleted the feature/acquireRetryAttempts branch November 3, 2023 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants