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

NonStrictReadWriteMemcachedCollectionRegionAccessStrategy.get(SharedSessionContractImplementor, Object, long) returns null #16

Closed
dfsabugal opened this issue May 25, 2018 · 2 comments

Comments

@dfsabugal
Copy link

In latest version we have NonStrictReadWriteMemcachedCollectionRegionAccessStrategy class that implements Object get(SharedSessionContractImplementor session, Object key, long txTimestamp) throws CacheException; method from 'RegionAccessStrategy' but actually returns null. This change was introduced as part of commit b251ea4309f437038de032385e04457ef553d31c.

This makes cached entities with eagerly fetched collections that use CacheConcurrencyStrategy.NONSTRICT_READ_WRITE to get reloaded again from database when they are actually cached.

@mihaicostin
Copy link
Owner

Good catch @dfsabugal .
return null; doesn't look too good in there. it should be a return region().get(key);
I'll release a new version with the fix soon.

@mihaicostin
Copy link
Owner

hibernate-l2-memcached:5.2.17.0 should be available from maven central shortly.
It includes this fix along with a small upgrade to hibernate core to 5.2.17.0

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