Jump to content

Lesson Learned #305: Client Connection marked as broken because of SQLSTATE(08S01)


Recommended Posts

Guest Jose_Manuel_Jurado
Posted

Today, we worked on a service request that our customer is using Hikaki pooler and time to time they got the following error message: HikariPool-1 - Connection ConnectionID:18 ClientConnectionId: xxxx-xxxx-xxx marked as broken because of SQLSTATE(08S01), ErrorCode(0),exc.stack=com.microsoft.sqlserver.jdbc.SQLServerException: Connection timed out (Read failed)

 

 

 

After reviewing several articles, for example, Improve Java application reliability with Azure SQL Database using JDBC and connection pooling. - Microsoft Community Hub , Using the JDBC driver - JDBC Driver for SQL Server | Microsoft Learn,

 

 

 

We saw that our customer is facing TCP timeouts, following a recomendation of HikariCP pooler we configure the socket timeout to 30 at least and this issue didn't happen again.

 

 

 

Enjoy!

 

Continue reading...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...