question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for customizable transaction isolation level settings [JDBC]

See original GitHub issue

In some situations it would be useful to have the ability to override the default transaction isolation level when setting up the JdbcTemplateLockProvider.

Specifically it looks like an extension could be made to the JdbcTemplateLockProvider.Configuration class so that the desired isolation level could then be passed into the JdbcTemplateStorageAccessor for use by the transactionTemplate in the constructor. As it is currently implemented, I’m not sure how to do this via overrides since JdbcTemplateStorageAccessor is not public.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
lukas-krecancommented, Sep 8, 2021

Released as 4.27.0

2reactions
ssherwoodcommented, Sep 7, 2021

Well, specifically with the default isolation level there are errors showing up in the database logs regarding transactions needing to be restarted due to all of the running instances waking up vying to run the job. I’ve noticed that if I elevate isolation to SERIALIZABLE, these errors go away. However, I don’t want to use SERIALIZABLE on all of my connections, so having this as a customizable feature just for Shedlock solves the problem for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to set the JDBC isolation level. - TIBCO Support
Resolution: For the BW XA transaction group, you can set the transaction isolation level using BW property in tra. The transaction isolation ...
Read more >
A beginner's guide to transaction isolation levels in enterprise ...
In this post we are going to unravel the reasons behind using different transaction isolation levels and various configuration patterns for ...
Read more >
Configuring the JDBC Connector (Optional)
Ensure that the JDBC driver for the external SQL database supports any connection-level property that you specify. Connection Transaction Isolation Property.
Read more >
Transaction Isolation Level Settings
Specify transaction isolation level settings to set the transaction isolation level for a database. This setting prevents dirty read, repeatable read, ...
Read more >
Specifying the isolation level - IBM
At run time, use the SQLSetConnectAttr function with the SQL_ATTR_TXN_ISOLATION attribute to set the transaction isolation level for the current connection ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found