Re: Duplicated key in connection pool
Posted by: Kalpesh Popat
Date: August 07, 2023 11:15PM

I recently upgraded to connector 8.1 and .net 7 and started getting this error too.

In my case I have several background processes that attempts to initiate the connection from multiple threads in parallel.

Solution: Instead of downgrading the version i have solved the problem by initiating the first connection to mysql at the startup itself. This way the pool is created from the main thread and then there is no issue of requesting connection from multi threads.

Options: ReplyQuote


Subject
Written By
Posted
Re: Duplicated key in connection pool
August 07, 2023 11:15PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.