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

Increase module timeouts #2043

Merged
merged 2 commits into from
Oct 30, 2024
Merged

Conversation

ihrasko
Copy link
Collaborator

@ihrasko ihrasko commented Oct 30, 2024

Increase module timeouts

Increase timeout for start/shutdown in FileToDatastoreUtilsTest
in order to avoid timeouts during verify jobs.

60 seconds timeout corresponds with default module timeout as
set in ModulesConfig class.

JIRA: LIGHTY-299

Remove practically unused LightyModule#startBlocking method
which helps us to get rid of CountDownLatch in AbstractLightyModule.

This method seems to be mixing concepts of using Future and
CountDownLatch synchronisation tools. IMO there is no need to block
start method.

Additionally, there were some unusual usages in tests. They were
trying to invoke a blocking call and wrap its result into Future.

JIRA: LIGHTY-299
Signed-off-by: Ivan Hrasko <[email protected]>
Increase timeout for start/shutdown in FileToDatastoreUtilsTest
in order to avoid timeouts during verify jobs.

60 seconds timeout corresponds with default module timeout as
set in ModulesConfig class.

JIRA: LIGHTY-299
Signed-off-by: Ivan Hrasko <[email protected]>
@ihrasko ihrasko merged commit b220eec into PANTHEONtech:main Oct 30, 2024
6 checks passed
@ihrasko ihrasko deleted the improve-module-tests branch October 30, 2024 11:41
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