Here is the log sequence that I see when I close my Spring Boot Application. Can someone please let me know if this is the correct occurrence of the events that should happen?
2022-09-15 15:30:20.458 INFO 81214 --- [ Thread-16] o.s.s.concurrent.ThreadPoolTaskExecutor : Shutting down ExecutorService 'applicationTaskExecutor'
2022-09-15 15:30:22.518 INFO 81214 --- [ Thread-16] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2022-09-15 15:30:22.520 INFO 81214 --- [ Thread-16] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
2022-09-15 15:30:22.529 INFO 81214 --- [ Thread-16] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
According to my understanding, I think ExecutorService is the main ThreadPoolExecutor and should be the last one to shutdown. Are the connections established between the application and database not closing safely?