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

Verify oracle availability using "DATABASE IS READY TO USE!" #221

Merged
merged 1 commit into from
Jul 25, 2022

Conversation

stronk7
Copy link
Member

@stronk7 stronk7 commented Jul 25, 2022

We have ensured that all the oracle database images output
at the end of the init script the "DATABASE IS READY TO USE!"
text. That has been done by:

moodlehq/moodle-db-oracle#13

(Because Oracle 11g was missing that string)

So, now that the string is available in all moodle-db-oracle
images we can start using it here, in moodle-docker.

Still note this is not the ideal wait/health-check system
and we'll have to move to a proper one. See:

#160

But it's better than nothing, and the current one based
on the "Database opened." string was not working ok for
Oracle 21c (that requires 2 startups).

We have ensured that all the oracle database images output
at the end of the init script the "DATABASE IS READY TO USE!"
text. That has been done by:

moodlehq/moodle-db-oracle#13

(Because Oracle 11g was missing that string)

So, now that the string is available in all moodle-db-oracle
images we can start using it here, in moodle-docker.

Still note this is not the ideal wait/health-check system
and we'll have to move to a proper one. See:

moodlehq#160

But it's better than nothing, and the current one based
on the "Database opened." string was not working ok for
Oracle 21c (that requires 2 startups).
@stronk7
Copy link
Member Author

stronk7 commented Jul 25, 2022

If automated tests for the master branch with Oracle now pass... it means the detection of the new string is working as expected.

Before this PR those jobs were failing 50% of time, assuming that the database was ready too early.

Ciao :-)

@stronk7 stronk7 merged commit 466c022 into moodlehq:master Jul 25, 2022
@stronk7 stronk7 deleted the better_wait_for_db_oracle branch July 25, 2022 16:39
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.

1 participant