It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

What modifications are in ehcache-2.10.2-atlassian-4.jar?

We are using a patched version of ehcache-2.7.5 in JIRA 7.1.9 to address

We noticed in the 7.2.3 update that jar is replaced by an Atlassian fork. What is in this fork? Is the source code available so we can apply our patch?

1 answer

1 accepted

1 vote
Answer accepted
crf Atlassian Team Nov 16, 2016

The reason for the modifications and the patch that was applied to fix it are both available here:


Thanks. So would using the 2.10.3 version unmodified by Atlassian be an option?

crf Atlassian Team Nov 16, 2016

To the best of my knowledge, yes.

That said, you should keep in mind that if Atlassian is not shipping that version yet, then we have not tested with it.  Using a version other than the one we supply may make it more difficult for the support team to help out if there are other changes included in that version that cause problems.

Thanks. We'll give it a shot.

If that doesn't work how do we see the patch from that terracotta ticket? Seems to be eluding me. Is it available in diff format somehow?

crf Atlassian Team Nov 16, 2016

It isn't stated directly, just described.  it is replacing the final call to "getQuietly" with the block of text at the end.  The point is that this returns the loaded value directly instead of trying to retrieve it from the cache again.

Oh I see. Thanks.

crf Atlassian Team Nov 16, 2016

I was able to hunt down the repo and extract a formal patch for you:

diff --git a/ehcache-core/src/main/java/net/sf/ehcache/ b/ehcache-core/src/main/java/net/sf/ehcache/
index af1592e..cdd6043 100644
--- a/ehcache-core/src/main/java/net/sf/ehcache/
+++ b/ehcache-core/src/main/java/net/sf/ehcache/
@@ -1859,7 +1859,9 @@ public class Cache implements InternalEhcache, StoreListener {
                 value = loadValueUsingLoader(key, loader, loaderArgument);
             if (value != null) {
-                put(new Element(key, value), false);
+                final Element newElement = new Element(key, value);
+                put(newElement, false);
+                return newElement;
         } catch (TimeoutException e) {
             throw new LoaderTimeoutException("Timeout on load for key " + key, e);

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Introducing new features for Jira Software Cloud's roadmap

Hi Atlassian community, A few months ago, we offered a sneak peak of the new hierarchy view on the roadmap. Thank you for all the feedback (and excitement) and for helping us shape the direction of...

25,386 views 118 90
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you