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

TransactionAwareCacheDecorator method clear not synchronised with transaction [SPR-12653] #17254

Closed
spring-issuemaster opened this issue Jan 22, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@spring-issuemaster
Copy link
Collaborator

commented Jan 22, 2015

Stas Volsky opened SPR-12653 and commented

Method clear of TransactionAwareCacheDecorator not synchronised with transaction.

When method annotated with @CacheEvict(allEntries = true) called by one thread in transactional method cache clears immidiatly. but when another thread do read, old value puts in cache and not evicted then first transaction commits. So there are incorrect value in cache.

when cache evicts by key - all works fine.


Reference URL: #723

Referenced from: commits 13ccc8e, ef95fc2

1 votes, 4 watchers

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Jan 22, 2015

Stas Volsky commented

I'v submitted pull request #723

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Feb 10, 2015

Stéphane Nicoll commented

Merged, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.