Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.1-RC1
-
Fix Version/s: 2.1-RC2
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
This is happening because it's using the index of the property instead of its value:
geoServer.addListener(new ConfigurationListenerAdapter() { @Override public void handleGlobalChange(GeoServerInfo global, List<String> propertyNames, List<Object> oldValues, List<Object> newValues) { int i = propertyNames.indexOf( "featureTypeCacheSize" ); if (i > -1) { gs.getCatalog().getResourcePool().setFeatureTypeCacheSize(i); } } });
This in turn results the LRUMap to use its default size, which is only 16
Actually debugging shows an exception is thrown during the LRUMap construction, which is eaten away in GeoServerImpl line 154:
I guess I'll also add some logging there :-p