Sevas
Sevas

Reputation: 4273

Configuring the fetch attempt duration when EHCache attempts to connect to a Terracotta server that is down

if I try to connect to a Terracotta server that is currently down by calling net.sf.ehcache.CacheManager.create();, EHCache keeps retrying connection attempts for a full 300 seconds before throwing an exception with this message:

Could not fetch configuration data from the server at 'terracottahost:9510'. Fetch attempt duration: 300 seconds.

Is there any way to modify this time to be maybe 30 or 60 seconds?

Upvotes: 0

Views: 350

Answers (1)

Sevas
Sevas

Reputation: 4273

This was posted to me on the Terracotta forums by (I think) their developer:

Unfortunately that timeout looks like it is hard coded. I encourage you to open a feature request to allow it to be configurable.

So it would seem that this is not configurable after all.

Upvotes: 0

Related Questions