Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
8.8
-
None
-
None
Description
After restoring a backup that reuses a previously existing config set, changes in the schema are not visible in the schema API.
The changes will become visible only after a server restart.
Steps To Repeat
start solr server in cloud mode with SOLR_OPTS set to -Dsolr.disableConfigSetsCreateAuthChecks=true -Dsolr.allowPaths=/var/solr_backup
solr start -c
For preparation create a config set, collection and backup:
http://localhost:8983/solr/admin/configs?action=CREATE&name=testcollection&baseConfigSet=_default
Check the list of fields with the schema API:
http://localhost:8983/solr/testcollection/schema/fields
Note the fields listed.
Simulate a schema change - add a field "test1"to the managed-schema:
/var/solr_backup/testcollection_backup/zk_backup/configs/testcollection/managed-schema
<field name="test1" type="string" indexed="true" stored="true" />
Delete the collection and config set and restore it from the backup:
http://localhost:8983/solr/admin/collections?action=DELETE&name=testcollection
http://localhost:8983/solr/admin/configs?action=DELETE&name=testcollection
Check the list of fields with the schema API again:
http://localhost:8983/solr/testcollection/schema/fields
The added test1 field is missing.
The field is immediately visible in 8.6.3 In 8.8.2 a server restart is necessary to see the new field.