Geoserver reload temporarily reenables services

Description

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?

Environment

Geoserver 2.10.4 on CentOS 7

Status

Assignee

Unassigned

Reporter

alberto

Triage

Fix versions

None

Affects versions

Components

Priority

Medium
Configure