Open AntoineDuComptoirDesPharmacies opened 1 week ago
Can you please
sbt formatCode
Thanks!
Can you please
- Run
sbt formatCode
- Squash your changes into one single commit on top of main?
Thanks!
Done ! 👍
Also can you please give the commit a better commit message instead of just # Ebean 3420
? It's hard to tell what the commit does when just looking at the git log.
Also can you please give the commit a better commit message instead of just
# Ebean 3420
? It's hard to tell what the commit does when just looking at the git log.
Current commit message is :
# Ebean 3420
Create EbeanLifecycle component to manage Ebean shutdown
But I will try to add more line to explain the content. 👍
Also can you please give the commit a better commit message instead of just
# Ebean 3420
? It's hard to tell what the commit does when just looking at the git log.Current commit message is :
# Ebean 3420 Create EbeanLifecycle component to manage Ebean shutdown
But I will try to add more line to explain the content. 👍
No need to add more lines, just the first line should be more meaningful.
Commit message changed and comment taken into account. 👍
This pull request aims to fix the problem of Ebean Issue 3420 (https://github.com/ebean-orm/ebean/issues/3420) where SIGTERM signal will immediately shutdown the
ThreadPoolExecutor
of Ebean, causing some reject on async count tasks while HTTP request is in progress.This is solved by calling
ShutdownManager.shutdown()
on application lifecycle stopHook instead of closing each database individually. Note that we have to callShutdownManager.deregisterShutdownHook()
to avoid Ebean triggering shutdown on SIGTERM signal.