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

UNOMI-861: use asynchronous delete_by_query in migration scripts to a… #704

Merged
merged 4 commits into from
Oct 24, 2024

Conversation

jsinovassin
Copy link
Contributor

@jsinovassin jsinovassin commented Oct 23, 2024

…void timeout
https://issues.apache.org/jira/browse/UNOMI-861
Following the update done in #697

In the migration steps, the delete_by_query and update_by_query has been update to execute an asynchronous call in order to avoid to reach a timeout if the request takes too long.

A try catch has also been added in the the Activate method of UnomiManagementServiceImpl because when there was a fail, the Activate method was called again

startUnomi();
}
} catch (Exception e) {
LOGGER.error("Error while starting Unomi", e);
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems to catch more than a starting Unomi exception.

@jsinovassin jsinovassin merged commit 3b2da02 into master Oct 24, 2024
5 checks passed
@jsinovassin jsinovassin deleted the UNOMI-861 branch October 24, 2024 15:09
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.

2 participants