[Geoserver-devel] [JIRA] (GEOS-8370) Geoserver reload temporarily reenables services

alberto created an issue

GeoServer / BugGEOS-8370

Geoserver reload temporarily reenables services

Issue Type:

BugBug

Affects Versions:

2.10.4

Assignee:

Unassigned

Components:

REST

Created:

30/Oct/17 10:15 PM

Environment:

Geoserver 2.10.4 on CentOS 7

Priority:

MediumMedium

Reporter:

alberto

When Geoserver is reloading catalog (after POSTing to /rest/reload), some unexpected errors are returned by all OGC services (for example, a GetCoverage returns a “NoSuchCoverage” exception).

As a workaround, we attempted to disable services first, before executing the reload, and enabling them after. The idea is to catch the “service is disabled” response and treat it as a “Geoserver is reloading” edge case. We disable the services through the appropriate rest service endpoint.

For example:

  • PUT /rest/services/wcs/settings -> “<wcs><enabled>false</enabled></wcs>”
  • POST /rest/reload
  • PUT /rest/services/wcs/settings -> “<wcs><enabled>true</enabled></wcs>”

Problem is, the POST to /rest/reload ends up temporarily re-enabling the services, so I get the same “NoSuchCoverage” exception anyways.

Is there a way around this issue?

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#100070-sha1:40a1170)

Atlassian logo