JndiInfinispanRegionFactory creates region with a stopped cache, if region previously existed

Description

Using JndiInfinispanRegionFactory, closing a hibernate session factory triggers the destruction of all associated cache regions and stops the backing caches, though not the cache manager itself (Due to HHH-5512). If the session factory is restarted (e.g. the same application is redeployed), CacheManager.getCache(...) will return the already existing cache, but with a TERMINATED status. Consequently, when determining the cache instance for a given region, the region factory must always validate the status of the cache, starting it if necessary.

Environment

None

Activity

Show:
Galder Zamarreno
September 15, 2010, 11:10 AM

I don't think the patch is correct. Clients should not be needing to make these checks. It should be the CacheManager itself doing it, see https://jira.jboss.org/browse/ISPN-649.

Galder Zamarreno
September 15, 2010, 11:21 AM

I don't think the patch is correct. Clients should not be needing to make these checks. It should be the CacheManager itself doing it, see https://jira.jboss.org/browse/ISPN-649.

Steve Ebersole
March 21, 2011, 7:08 PM

Bulk closing stale resolved issues

Assignee

Galder Zamarreno

Reporter

Paul Ferraro

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure