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
HHH-8732 Upgraded Ehcache to 2.7.5 #643
Conversation
the latest ehcache is 2.7.5, though. |
Is it ?! Hehe! Kinda scary I don't know that !!! I guess... working on 2.9.0, I have an excuse ;) |
Hey @alexsnaps, any news on the version? |
I've updated to 2.7.5 |
@alexsnaps, thanks much! Would this make hibernate-ehcache incompatable with users still explicitly using an older ehcache version? Wondering if we should hold off for ORM 5 |
Is there something we could do to address HHH-8732 without upgrading, then defer the actual upgrade until 5? |
I fear the answer is no... While the initial issue fix is "minimal", these newer version of Ehcache use a new statistics framework and expose the stats differently now... Something that Hibernate depends on. |
@alexsnaps, thanks much for the info! Since 4.3 is now our stable branch and should only be getting bug fixes, I'm inclined to pull this solely into 5. Any arguments against that? |
And @alexsnaps, if the above is the case, is there anything we can do to correct HHH-8732 without upgrading the version? Simply remove ValueMode usage from HibernateUtil? |
That would actually be really bad. Would break use cases for users not properly configuring their caches and using older versions, while fixing "newer" versions (that users would need to override the transitive dependency for)... Honestly, I don't think there is much we can do and =<4.3 would be Ehcache =<2.6 and 5 would then be newer version. The other option is to start doing so evil stuff with multiple code paths for either versions, but this would create a test & dep nightmare (the one magic I don't miss from the byte code voodoo we used to do). |
@alexsnaps, understood -- good points. No need to change the PR. master == ORM 5 Definitely interested to hear more about jsr107. The mailing list would be a great start. |
Merging. Thanks much for the fix and discussion! |
I still see ValueMode as an issue with Hibernate 5.2.FINAL and Terracotta 4.3 enterprise verison. Is the fix released for ORM 5X? |
@Akansha1988 Really hard to help here, you may want to drop a complete report to the ehcache users google group here : https://groups.google.com/forum/#!categories/ehcache-users/ehcache-hibernate |
@Akansha1988 Looks like you're right. Something is odd here. Am addressing this as part of HHH-10124 |
Investigating this a little further, looks like the commit got "lost" on master around the 4.3.0.Final release (way back when). I think at the time master was to be 5.0. Anyways, I guess all will make it in as part of 5.1 |
Thanks Alex! |
@alexsnaps Is the commit you are talking about on the upstream hibernate-orm/metamodel branch? That was master for a while, and the plan was for it to be 5.0, but developing the planned changes there took way too long so we decided to move the work on master off to that branch I mentioned; some of the work from that branch got moved to the new master to form what actually got released as 5.0. Confusing I know... sorry |
Ah! That may explain. I'll search as soon as I can. This PR is the
|
Its up to you. Not sure how likely it is to apply cleanly. |
It's on that branch. I don't think we can get this over in any sane way On Tue, Nov 10, 2015 at 4:29 PM Steve Ebersole notifications@github.com
|
Ok. I'll create a new Jira and link this PR to it and try to get it applied today. |
FWIW, GitHub at least seems to think this will not apply cleanly to master... |
Y, this one won't work, but #1142 should |
I guess I misunderstood when you commented "the PR" on this PR ;) |
@alexsnaps Hi Alex, just wanted to check if there is any update on the fix? |
@Akansha1988 it got merged in as #1142 that'll be in 5.1 only though iirc... |
@alexsnaps Could you please let me know when is 5.1 expected? |
Dunno, @sebersole ? |
Sometime after the holidays. Not sure yet exactly. On Mon, Dec 7, 2015, 3:34 PM Alex Snaps notifications@github.com wrote:
|
This not only addresses HHH-8732, but actually upgrades the ehcache dependency to a newer stable release, 2.7.4, which isn't compatible (compile & runtime) with older releases (new stats API & some config changes, as covered by HHH-8732)