-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 5.8, 6.0, 7.3
-
Component/s: Elasticsearch
-
Tags:
The stacked indexing command during startup may fail to be processed:
ERROR [localhost-startStop-1] [org.nuxeo.runtime.model.impl.RegistrationInfoImpl] Component notification of application started failed. java.lang.IllegalStateException: Command is not attached to a valid session: {"id":"IndexingCommand-6bb4536e-a2bb-46da-b617-6a000b695d66","type":"UPDATE","docId":"XXX","path":"/XXX/UserWorkspaces/30117/XXX.jpg","repo":"default","recurse":false,"sync":false} at org.nuxeo.elasticsearch.commands.IndexingCommand.getTargetDocument(IndexingCommand.java:153) at org.nuxeo.elasticsearch.core.ElasticSearchIndexingImpl.buildEsIndexingRequest(ElasticSearchIndexingImpl.java:301) at org.nuxeo.elasticsearch.core.ElasticSearchIndexingImpl.processBulkIndexCommands(ElasticSearchIndexingImpl.java:145) at org.nuxeo.elasticsearch.core.ElasticSearchIndexingImpl.indexNonRecursive(ElasticSearchIndexingImpl.java:116) at org.nuxeo.elasticsearch.ElasticSearchComponent$1.run(ElasticSearchComponent.java:238) at org.nuxeo.ecm.core.api.UnrestrictedSessionRunner.runUnrestricted(UnrestrictedSessionRunner.java:149) at org.nuxeo.elasticsearch.ElasticSearchComponent.processStackedCommands(ElasticSearchComponent.java:235) at org.nuxeo.elasticsearch.ElasticSearchComponent.applicationStarted(ElasticSearchComponent.java:184) at org.nuxeo.runtime.model.impl.RegistrationInfoImpl.notifyApplicationStarted(RegistrationInfoImpl.java:336) at org.nuxeo.runtime.osgi.OSGiRuntimeService.notifyComponentsOnStarted(OSGiRuntimeService.java:494) at org.nuxeo.runtime.osgi.OSGiRuntimeService.fireApplicationStarted(OSGiRuntimeService.java:532) at org.nuxeo.runtime.osgi.OSGiRuntimeService.frameworkEvent(OSGiRuntimeService.java:542) at org.nuxeo.osgi.OSGiAdapter.fireFrameworkEvent(OSGiAdapter.java:238) at org.nuxeo.osgi.application.loader.FrameworkLoader.doStart(FrameworkLoader.java:232) at org.nuxeo.osgi.application.loader.Fram
Then the Elasticsearch service is broken, generating NPE on each access org.nuxeo.elasticsearch.ElasticSearchComponent.getClient