-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
control-service: add timeouts to shedlock's database operations (#693)
We have experienced cases when operations against the database appear to hang indefinitely (usually after a connectivity issue with the database). As a result tasks that attempt to obtain a distributed lock, fail to start. This is particularly problematic for important tasks, such as the data job watching. This commit attempts to resolve this by specifying a query timeout to the Jdbc template used by shedlock to operate with the database. Link: https://dzone.com/articles/threads-stuck-in-javanetsocketinputstreamsocketrea Testing done: started the service locally and veried that the locks are operating normally with thevtimeout. Signed-off-by: Tsvetomir Palashki <tpalashki@vmware.com>
- Loading branch information
Showing
2 changed files
with
19 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters