Using custom mybatis call

We have started to use custom mybatis calls along with using the out of the box flowable REST API calls and we have started to notice getting the following in our flowable database logs …

org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available, request timed out after 30001ms.

or

2020-06-03 13:41:09.946 ERROR 1 — [et-expired-jobs] o.f.j.s.i.a.ResetExpiredJobsRunnable : exception during resetting expired jobs: Could not open JDBC Connection for transaction; nested exception is java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available, request timed out after 30000ms. for engine cmmn

or

020-06-03 13:41:10.576 ERROR 1 — [re-history-jobs] o.f.j.s.i.a.AcquireAsyncJobsDueRunnable : exception for engine bpmn during async job acquisition: Could not open JDBC Connection for transaction; nested exception is java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available, request timed out after 30000ms.

Any insights on what is causing this ?

How are you configuring the Process engine configuration?

That exception looks like you don’t have enough connections in your connection pool