-
Type: Bug
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: 2021.x
-
Fix Version/s: None
-
Component/s: Elasticsearch, Tests
-
Tags:
-
Team:PLATFORM
Seen twice recently on 2021 with Postgres only:
- https://jenkins.platform.dev.nuxeo.com/blue/organizations/jenkins/nuxeo%2Flts%2Fnuxeo/detail/PR-1657/2/pipeline/
- https://jenkins.platform.dev.nuxeo.com/blue/organizations/jenkins/nuxeo%2Flts%2Fnuxeo/detail/PR-1655/2/pipeline/
[2024-01-11T13:22:58.235Z] [ERROR] testIndexingAllBulkService(org.nuxeo.ecm.automation.elasticsearch.test.TestElasticsearchAutomation) Time elapsed: 1.196 s <<< ERROR! [2024-01-11T13:22:58.235Z] org.nuxeo.ecm.core.api.NuxeoException: [2024-01-11T13:22:58.235Z] Failed to invoke operation Elasticsearch.BulkIndex, org.elasticsearch.client.ResponseException: method [PUT], host [http://elasticsearch-master.platform-nuxeo-unit-tests-pr-1657-2-postgresql.svc.cluster.local:9200], URI [/nxutest/_mapping], status line [HTTP/1.1 400 Bad Request] [2024-01-11T13:22:58.235Z] {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"mapper [ecm:uuid] cannot be changed from type [text] to [keyword]"}],"type":"illegal_argument_exception","reason":"mapper [ecm:uuid] cannot be changed from type [text] to [keyword]"},"status":400} [2024-01-11T13:22:58.235Z] at org.nuxeo.elasticsearch.client.ESRestClient.performRequest(ESRestClient.java:258) [2024-01-11T13:22:58.235Z] at org.nuxeo.elasticsearch.client.ESRestClient.performRequestWithTracing(ESRestClient.java:267) [2024-01-11T13:22:58.235Z] at org.nuxeo.elasticsearch.client.ESRestClient.createMapping(ESRestClient.java:233) [2024-01-11T13:22:58.235Z] at org.nuxeo.elasticsearch.core.ElasticSearchAdminImpl.initIndex(ElasticSearchAdminImpl.java:533) [2024-01-11T13:22:58.235Z] at org.nuxeo.elasticsearch.core.ElasticSearchAdminImpl.initIndex(ElasticSearchAdminImpl.java:402) [2024-01-11T13:22:58.235Z] at org.nuxeo.elasticsearch.core.ElasticSearchAdminImpl.dropAndInitRepositoryIndex(ElasticSearchAdminImpl.java:369) [2024-01-11T13:22:58.235Z] at org.nuxeo.elasticsearch.core.ElasticSearchAdminImpl.initRepositoryIndexWithAliases(ElasticSearchAdminImpl.java:378) [2024-01-11T13:22:58.235Z] at org.nuxeo.elasticsearch.ElasticSearchComponent.initRepositoryIndexWithAliases(ElasticSearchComponent.java:276) [2024-01-11T13:22:58.235Z] at org.nuxeo.ecm.automation.elasticsearch.ElasticsearchBulkIndexOperation.run(ElasticsearchBulkIndexOperation.java:71) [2024-01-11T13:22:58.235Z] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [2024-01-11T13:22:58.235Z] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [2024-01-11T13:22:58.235Z] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [2024-01-11T13:22:58.235Z] at java.base/java.lang.reflect.Method.invoke(Method.java:566) [2024-01-11T13:22:58.235Z] at org.nuxeo.ecm.automation.core.impl.InvokableMethod.doInvoke(InvokableMethod.java:168) [2024-01-11T13:22:58.235Z] at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:180) [2024-01-11T13:22:58.235Z] at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$OperationMethod.invoke(OperationChainCompiler.java:147) [2024-01-11T13:22:58.235Z] at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.lambda$invoke$0(OperationChainCompiler.java:212) [2024-01-11T13:22:58.235Z] at org.nuxeo.ecm.automation.OperationContext.call(OperationContext.java:331) [2024-01-11T13:22:58.235Z] at org.nuxeo.ecm.automation.OperationContext.callWithChainParameters(OperationContext.java:296) [2024-01-11T13:22:58.235Z] at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.invoke(OperationChainCompiler.java:209) [2024-01-11T13:22:58.235Z] at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:115) [2024-01-11T13:22:58.235Z] at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:91) [2024-01-11T13:22:58.235Z] at org.nuxeo.ecm.automation.elasticsearch.test.TestElasticsearchAutomation.testIndexingAllBulkService(TestElasticsearchAutomation.java:168) [2024-01-11T13:22:58.235Z] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [2024-01-11T13:22:58.235Z] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [2024-01-11T13:22:58.235Z] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [2024-01-11T13:22:58.235Z] at java.base/java.lang.reflect.Method.invoke(Method.java:566) [2024-01-11T13:22:58.235Z] at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) [2024-01-11T13:22:58.235Z] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) [2024-01-11T13:22:58.235Z] at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) [2024-01-11T13:22:58.235Z] at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) [2024-01-11T13:22:58.235Z] at org.nuxeo.runtime.test.runner.FeaturesRunner$BeforeMethodRunStatement.evaluate(FeaturesRunner.java:457) [2024-01-11T13:22:58.235Z] at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) [2024-01-11T13:22:58.235Z] at org.nuxeo.runtime.test.runner.FeaturesRunner$BeforeSetupStatement.evaluate(FeaturesRunner.java:471) [2024-01-11T13:22:58.235Z] at org.nuxeo.runtime.test.runner.FeaturesRunner.evaluateRunnable(FeaturesRunner.java:328) [2024-01-11T13:22:58.235Z] at org.nuxeo.runtime.test.runner.FeaturesRunner$AfterMethodRunStatement.evaluate(FeaturesRunner.java:493) [2024-01-11T13:22:58.235Z] at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) [2024-01-11T13:22:58.235Z] at org.nuxeo.runtime.test.runner.FeaturesRunner.evaluateRunnable(FeaturesRunner.java:328) [2024-01-11T13:22:58.235Z] at org.nuxeo.runtime.test.runner.FeaturesRunner$AfterTeardownStatement.evaluate(FeaturesRunner.java:506) [2024-01-11T13:22:58.235Z] at org.nuxeo.runtime.test.runner.FeaturesRunner$RulesFactory$1.evaluate(FeaturesRunner.java:576) [2024-01-11T13:22:58.235Z] at org.nuxeo.runtime.test.runner.RuntimeDeployment$DeploymentStatement.evaluate(RuntimeDeployment.java:303) [2024-01-11T13:22:58.235Z] at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) [2024-01-11T13:22:58.235Z] at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) [2024-01-11T13:22:58.235Z] at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) [2024-01-11T13:22:58.235Z] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) [2024-01-11T13:22:58.235Z] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) [2024-01-11T13:22:58.235Z] at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) [2024-01-11T13:22:58.235Z] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) [2024-01-11T13:22:58.235Z] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) [2024-01-11T13:22:58.235Z] at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) [2024-01-11T13:22:58.235Z] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) [2024-01-11T13:22:58.235Z] at org.nuxeo.runtime.test.runner.FeaturesRunner$AfterClassStatement.evaluate(FeaturesRunner.java:404) [2024-01-11T13:22:58.235Z] at org.nuxeo.runtime.test.runner.FeaturesRunner$RulesFactory$1.evaluate(FeaturesRunner.java:576) [2024-01-11T13:22:58.235Z] at org.nuxeo.runtime.test.runner.FeaturesRunner$BeforeClassStatement.evaluate(FeaturesRunner.java:387) [2024-01-11T13:22:58.235Z] at org.junit.rules.RunRules.evaluate(RunRules.java:20) [2024-01-11T13:22:58.235Z] at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) [2024-01-11T13:22:58.235Z] at org.junit.runners.ParentRunner.run(ParentRunner.java:413) [2024-01-11T13:22:58.235Z] at org.junit.runners.Suite.runChild(Suite.java:128) [2024-01-11T13:22:58.235Z] at org.junit.runners.Suite.runChild(Suite.java:27) [2024-01-11T13:22:58.235Z] at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) [2024-01-11T13:22:58.235Z] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) [2024-01-11T13:22:58.235Z] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) [2024-01-11T13:22:58.235Z] at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) [2024-01-11T13:22:58.235Z] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) [2024-01-11T13:22:58.235Z] at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) [2024-01-11T13:22:58.235Z] at org.junit.runners.ParentRunner.run(ParentRunner.java:413) [2024-01-11T13:22:58.235Z] at org.apache.maven.surefire.junitcore.JUnitCore.run(JUnitCore.java:55) [2024-01-11T13:22:58.235Z] at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.createRequestAndRun(JUnitCoreWrapper.java:137) [2024-01-11T13:22:58.235Z] at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.executeEager(JUnitCoreWrapper.java:107) [2024-01-11T13:22:58.235Z] at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:83) [2024-01-11T13:22:58.235Z] at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:75) [2024-01-11T13:22:58.235Z] at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:158) [2024-01-11T13:22:58.235Z] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) [2024-01-11T13:22:58.235Z] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) [2024-01-11T13:22:58.235Z] at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) [2024-01-11T13:22:58.235Z] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) [2024-01-11T13:22:58.235Z] Suppressed: java.lang.Throwable: [2024-01-11T13:22:58.235Z] [2024-01-11T13:22:58.235Z] ****** chain ****** [2024-01-11T13:22:58.235Z] Name: Elasticsearch.BulkIndex [2024-01-11T13:22:58.235Z] Exception: NuxeoException [2024-01-11T13:22:58.235Z] Caught error: Failed to invoke operation Elasticsearch.BulkIndex, org.elasticsearch.client.ResponseException: method [PUT], host [http://elasticsearch-master.platform-nuxeo-unit-ests-r-1657-2-postgresql.svc.cluster.local:9200], URI [/nxutest/_mapping], status line [HTTP/1.1 400 Bad Request] [2024-01-11T13:22:58.235Z] {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"mapper [ecm:uuid] cannot be changed from type [text] to [keyword]"}],"type":"illegal_argument_exception","reason":"mapper [ecm:uuid] cannot be changed from type [text] to [keyword]"},"status":400} [2024-01-11T13:22:58.235Z] Caused by: org.nuxeo.ecm.core.api.NuxeoException: Failed to invoke operation Elasticsearch.BulkIndex, org.elasticsearch.client.ResponseException: method [PUT], host [http://elasticsearch-master.platform-nuxeo-unit-tests-pr-1657-2-postgresql.svc.cluster.local:9200], URI [/nxutest/_mapping], status line [HTTP/1.1 400 Bad Request] [2024-01-11T13:22:58.235Z] {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"mapper [ecm:uuid] cannot be changed from type [text] to [keyword]"}],"type":"illegal_argument_exception","reason":"mapper [ecm:uuid] cannot be changed from type [text] to [keyword]"},"status":400} [2024-01-11T13:22:58.235Z] ****** Hierarchy calls ****** [2024-01-11T13:22:58.235Z] org.nuxeo.ecm.automation.elasticsearch.ElasticsearchBulkIndexOperation [2024-01-11T13:22:58.235Z] [2024-01-11T13:22:58.235Z] at org.nuxeo.ecm.automation.core.trace.TracerFactory.onTrace(TracerFactory.java:196) [2024-01-11T13:22:58.235Z] at org.nuxeo.ecm.automation.core.trace.Tracer.popContext(Tracer.java:72) [2024-01-11T13:22:58.235Z] at org.nuxeo.ecm.automation.core.trace.Tracer.onChainExit(Tracer.java:85) [2024-01-11T13:22:58.235Z] at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.lambda$invoke$0(OperationChainCompiler.java:224) [2024-01-11T13:22:58.235Z] ... 59 more [2024-01-11T13:22:58.235Z] Caused by: org.elasticsearch.client.ResponseException: method [PUT], host [http://elasticsearch-master.platform-nuxeo-unit-tests-pr-1657-2-postgresql.svc.cluster.local:9200], URI [/nxutest/_mapping], status line [HTTP/1.1 400 Bad Request] [2024-01-11T13:22:58.235Z] {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"mapper [ecm:uuid] cannot be changed from type [text] to [keyword]"}],"type":"illegal_argument_exception","reason":"mapper [ecm:uuid] cannot be changed from type [text] to [keyword]"},"status":400} [2024-01-11T13:22:58.235Z] at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:302) [2024-01-11T13:22:58.235Z] at org.elasticsearch.client.RestClient.performRequest(RestClient.java:272) [2024-01-11T13:22:58.235Z] at org.elasticsearch.client.RestClient.performRequest(RestClient.java:246) [2024-01-11T13:22:58.235Z] at org.nuxeo.elasticsearch.client.ESRestClient.performRequest(ESRestClient.java:256)