Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A simple select sql with 【The transaction has timed out】 Exception? I do not find the reason. #194

Open
vhypnus opened this issue Oct 26, 2023 · 4 comments

Comments

@vhypnus
Copy link

vhypnus commented Oct 26, 2023

Error querying database. Cause: com.atomikos.jdbc.internal.AtomikosSQLException: The transaction has timed out - try increasing the timeout if needed The error may exist in class path resource [mappers/xxxxx] The error may involve com.admin.cs.infrastructure.mapper.thailand.ThailandSettleControlMapper.selectCanSettleRecord The error occurred while executing a query

for exception source

image

@GuyPardon
Copy link
Contributor

Try the following:

  • use release 6.0
  • increase the timeout a lot
  • if it still happens then you may be facing network issues

Let me know...

Best

@vhypnus
Copy link
Author

vhypnus commented Oct 26, 2023

Try the following:

  • use release 6.0
  • increase the timeout a lot
  • if it still happens then you may be facing network issues

Let me know...

Best

thank you.
online , transaction time out 60 seconds , when case happen ,not found other slow sql or other transaction time out issue.

@vhypnus
Copy link
Author

vhypnus commented Oct 26, 2023

Try the following:

  • use release 6.0
  • increase the timeout a lot
  • if it still happens then you may be facing network issues

Let me know...

Best

i find source code ,exception code below

image

@GuyPardon
Copy link
Contributor

Could be a deadlock if you have 2 or more SQL statements in each transaction...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants