You probably want to select a query in the table that is used for a transaction without a completed transaction earlier. Try endTransaction() in the last block of the transaction.
OR
You are updating two tables, and two different transactions contain different tables, pending the release of the other.
OR
Itβs just that there are too many open connections, and the DB pool or pools are just getting confused.
Be that as it may, something is probably wrong from the above. Check carefully.
Details - The connection pool could not provide a connection to the stream .
source share