InfinispanRegionFactory inadvertently starts the default cache during stop()

Description

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.

Environment

None

Status

Assignee

Paul Ferraro

Reporter

Paul Ferraro

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.0.8
5.1.0
4.3.11

Priority

Blocker