InfinispanRegionFactory inadvertently starts the default cache during stop()
Description
Activity
Show:

Former user March 1, 2016 at 11:39 PM
Fixed in master and 5.0 branches.

Scott Marlow February 26, 2016 at 4:24 PM
I verified that this change helped with WFLY-6283. Still need someone to code review the pull request though (Radim or Galder I think).

Paul Ferraro February 26, 2016 at 1:48 PM
This looks like the same issue to me.

Scott Marlow February 26, 2016 at 1:31 PM
https://issues.jboss.org/browse/WFLY-6283 was reported yesterda. I'm not yet sure if this is the same problem (waiting for user to download WildFly build that contains the above 5.0 pull request).

stop() invokes stopCacheRegions(), which it turn calls manager.getCache() to access the GlobalComponentRegistry. This will start the default cache - which can be costly - and is completely unnecessary.