Skip to content

SPR-15121 - Update DataSourceTransactionManager.java #1291

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

Closed
wants to merge 1 commit into from
Closed

SPR-15121 - Update DataSourceTransactionManager.java #1291

wants to merge 1 commit into from

Conversation

springrain
Copy link

IsolationLevelDataSourceRouter.determineCurrentLookupKey returns the result was null, since AbstractPlatformTransactionManager.getTransaction (TransactionDefinition definition) before calling doBegin(Object transaction, TransactionDefinition definition), setCurrentTransactionIsolationLevel(Integer isolationLevel) is not set, but get a connection, it's bug.

IsolationLevelDataSourceRouter.determineCurrentLookupKey returns the result was null, since AbstractPlatformTransactionManager.getTransaction (TransactionDefinition definition) before calling doBegin(Object transaction, TransactionDefinition definition), setCurrentTransactionIsolationLevel(Integer isolationLevel) is not set, but get a connection, it's bug.
@pivotal-issuemaster
Copy link

@springrain Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-issuemaster
Copy link

@springrain Thank you for signing the Contributor License Agreement!

@snicoll
Copy link
Member

snicoll commented Jan 10, 2017

@springrain please create an issue for this change and provide more details about the use case.

@springrain springrain changed the title Update DataSourceTransactionManager.java Update DataSourceTransactionManager.java#15121 Jan 10, 2017
@springrain springrain changed the title Update DataSourceTransactionManager.java#15121 Update DataSourceTransactionManager.java Jan 10, 2017
@springrain
Copy link
Author

issue

@snicoll snicoll changed the title Update DataSourceTransactionManager.java SPR-15121 - Update DataSourceTransactionManager.java Jan 12, 2017
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Jan 24, 2019
@rstoyanchev rstoyanchev added the in: data Issues in data modules (jdbc, orm, oxm, tx) label Nov 10, 2021
@snicoll
Copy link
Member

snicoll commented Nov 24, 2021

@springrain thanks for the PR but we can't really proceed without a test that exercise the change. I can see that @jhoeller is now assigned to the original issue so let's keep the conversation there. Thanks for the PR, in any case!

@snicoll snicoll closed this Nov 24, 2021
@snicoll snicoll added status: declined A suggestion or change that we don't feel we should currently apply and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: data Issues in data modules (jdbc, orm, oxm, tx) status: declined A suggestion or change that we don't feel we should currently apply
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants