Gabriel Roldan (
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A54db8b09-1e64-436a-adac-248049585cee
) *created* an issue
GeoServer (
https://osgeo-org.atlassian.net/browse/GEOS?atlOrigin=eyJpIjoiNGJmYzAyMzRhNTAxNDMwOWFkYWYyNGJlYTFhN2QyZTkiLCJwIjoiaiJ9
) / Bug (
https://osgeo-org.atlassian.net/browse/GEOS-10022?atlOrigin=eyJpIjoiNGJmYzAyMzRhNTAxNDMwOWFkYWYyNGJlYTFhN2QyZTkiLCJwIjoiaiJ9
) GEOS-10022 (
https://osgeo-org.atlassian.net/browse/GEOS-10022?atlOrigin=eyJpIjoiNGJmYzAyMzRhNTAxNDMwOWFkYWYyNGJlYTFhN2QyZTkiLCJwIjoiaiJ9
) JDBCConfig's ConfigDatabase save() and remove() leave objects in internal
cache (
https://osgeo-org.atlassian.net/browse/GEOS-10022?atlOrigin=eyJpIjoiNGJmYzAyMzRhNTAxNDMwOWFkYWYyNGJlYTFhN2QyZTkiLCJwIjoiaiJ9
)
Issue Type: Bug Assignee: Unassigned Components: JDBCConfig Created: 15/Apr/21
6:25 PM Priority: Medium Reporter: Gabriel Roldan (
https://osgeo-org.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A54db8b09-1e64-436a-adac-248049585cee
)
I don't have time for a PR now, but had to to the following in geoserver-cloud,
where there's a full catalog conformance test:
/**
* Override to dispose the internal cache for both the {@link
ModificationProxy} wrapped object
* (as it may contain identity references to other objects) and the provided
{@code info} (which
* can contain new references to other objects like workspace)
*/
@Override
@Transactional(transactionManager = "jdbcConfigTransactionManager",
propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public <T extends Info> T save(T info) {
clearCache(ModificationProxy.unwrap(info));
T saved = super.save(info);
clearCache(saved);
return saved;
}
/**
* Override to dispose the internal cache for both the {@link
ModificationProxy} wrapped object
*/
@Override
@Transactional(transactionManager = "jdbcConfigTransactionManager",
propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public void remove(Info info) {
clearCache(ModificationProxy.unwrap(info));
super.remove(info);
}
(
https://osgeo-org.atlassian.net/browse/GEOS-10022#add-comment?atlOrigin=eyJpIjoiNGJmYzAyMzRhNTAxNDMwOWFkYWYyNGJlYTFhN2QyZTkiLCJwIjoiaiJ9
) Add Comment (
https://osgeo-org.atlassian.net/browse/GEOS-10022#add-comment?atlOrigin=eyJpIjoiNGJmYzAyMzRhNTAxNDMwOWFkYWYyNGJlYTFhN2QyZTkiLCJwIjoiaiJ9
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100157-
sha1:a51b698 )_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel