[Geoserver-devel] [JIRA] (GEOS-8483) WPSResourceManager does not clean resourceCache in asynchronous process

miskender created an issue

GeoServer / BugGEOS-8483

WPSResourceManager does not clean resourceCache in asynchronous process

Issue Type:

BugBug

Affects Versions:

2.12.1

Assignee:

Unassigned

Created:

11/Dec/17 10:19 AM

Priority:

MediumMedium

Reporter:

miskender

For synchronous process, finished executionId is removed from the resourceCache at
https://github.com/geoserver/geoserver/blob/7076e763387f0f682d05959e5b2d10442be12cf2/src/extension/wps/wps-core/src/main/java/org/geoserver/wps/resource/WPSResourceManager.java#L321
But executionId’s of asynchronous process does not removed from the resourceCache,
Possible Fix:
https://github.com/geoserver/geoserver/blob/7076e763387f0f682d05959e5b2d10442be12cf2/src/extension/wps/wps-core/src/main/java/org/geoserver/wps/resource/WPSResourceManager.java#L419
cleanExpiredResources can be modified like;
if (status == null || status.getPhase().isExecutionCompleted()) {
if( cleanupResource(r, expirationThreshold))

{ resourceCache.remove(r.name()); }

}
İf process’es output folder completely cleaned, It’s execution id can be removed from the resourceCache.

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100074-sha1:3da8cec)

Atlassian logo