Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-30944

Unable to view documents after indexing with elasticsearch.manageAlias.enabled=true

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 10.10
    • Fix Version/s: 10.10-HF62, 2021.21
    • Component/s: Elasticsearch
    • Release Notes Summary:
      The Elasticsearch alias is correctly propagated when doing a full reindex with manageAlias=true.
    • Backlog priority:
      900
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #59, nxplatform #60, nxplatform #61, nxplatform #62
    • Story Points:
      3

      Description

      After running a BulkReindex using the Elasticsearch.BulkIndex operation with elasticsearch.manageAlias.enabled=true, you can no longer view documents.  Receive the following error

      org.nuxeo.ecm.core.api.NuxeoException: The DocumentModel is not associated to an open CoreSession: DocumentModelImpl(24595661-31d6-47b6-ba50-9177edacd49b, path=/default-domain/UserWorkspaces/root/nuxeo-elasticsearch-core.163492, title=nuxeo-elasticsearch-core-10.10-HF54-SNAPSHOT.jar)
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getSession(DocumentModelImpl.java:366) ~[nuxeo-core-api-10.10-HF57.jar:?]
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.loadDataModel(DocumentModelImpl.java:439) ~[nuxeo-core-api-10.10-HF57.jar:?]
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getDataModel(DocumentModelImpl.java:449) ~[nuxeo-core-api-10.10-HF57.jar:?]
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getPart(DocumentModelImpl.java:1215) ~[nuxeo-core-api-10.10-HF57.jar:?]
      	at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getProperty(DocumentModelImpl.java:1263) ~[nuxeo-core-api-10.10-HF57.jar:?]
      	at org.nuxeo.ecm.core.io.marshallers.json.document.DocumentModelJsonWriter.writeSchemaProperties(DocumentModelJsonWriter.java:263) ~[nuxeo-core-io-10.10-HF57.jar:?]
      

      A restart of Nuxeo will clear up this error but the next time you reindex, it appears again.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: