CatalogRepository cannot find a store by name, if the store has just been added

Description

This happens when creating the "JDBC based opensearch store" in this config workflow:
http://docs.geoserver.org/latest/en/user/community/opensearch-eo/installation.html#configuring-the-opensearch-module

The postgis store just added is for whatever reason not found by CatalogRepository.

Reloading the catalog seems to fix the issue, hinting that might be an issue with the registration in the catalog facade.

Environment

None

Status

Assignee

Andrea Aime

Reporter

Andrea Aime

Triage

Fix versions

Affects versions

None

Components

Priority

Medium
Configure