-
Type: Bug
-
Status: Resolved
-
Priority: Critical
-
Resolution: Fixed
-
Affects Version/s: 10.10-HF55, 2021.12
-
Fix Version/s: 10.10-HF57, 2021.14
-
Component/s: Core MongoDB, Elasticsearch
-
Release Notes Summary:ES manage alias feature works fine with MongoDB.
-
Tags:
-
Backlog priority:900
-
Sprint:nxplatform #51
-
Story Points:5
When setting up a 10.10-HF55 Nuxeo instance with the manage alias feature enabled and MongoDB, The startup fails when accessing the key value store.
How to reproduce:
- fire up a 10.10 Nuxeo instance with:
- HF55
- MongoDB
- the ES manage alias feature enbaled:
elasticsearch.manageAlias.enabled=true
- drop the 2 nuxeo ES indexes (to have the aliases defined on the proper index):
curl -XDELETE http://localhost:9200/nuxeo-0000 curl -XDELETE http://localhost:9200/nuxeo
- restart the Nuxeo instance
- after restart, list the elasticsearch indexes:
curl http://localhost:9200/_aliases?pretty { "nuxeo-0000" : { "aliases" : { "nuxeo" : { }, "nuxeo-write" : { } } }, "nuxeo-audit" : { "aliases" : { } }, "nuxeo-uidgen" : { "aliases" : { } } }
- launch a full re-index with this command:
curl -X POST -su Administrator:Administrator -H 'Content-Type:application/json' -d '{}' http://localhost:8080/nuxeo/api/v1/automation/Elasticsearch.BulkIndex
- after the re-index, list the elasticsearch indexes:
curl http://localhost:9200/_aliases?pretty "nuxeo-0000" : { "aliases" : { } }, "nuxeo-0001" : { "aliases" : { "nuxeo" : { }, "nuxeo-write" : { } } }, "nuxeo-audit" : { "aliases" : { } }, "nuxeo-uidgen" : { "aliases" : { } } }
- restart the Nuxeo instance
Expected result: the Nuxeo instance started successfully
Actual result: the Nuxeo startup failed. See the errors in the attached server.log.