04:23:17.936 [main] INFO  o.c.o.t.i.e.ElasticSearchIntegrationTestExtension - Cleaning elasticsearch...
04:23:17.943 [main] INFO  o.c.o.t.i.e.ElasticSearchIntegrationTestExtension - All documents have been wiped out! Elasticsearch has successfully been cleaned!
04:23:17.943 [main] INFO  o.c.o.test.engine.EnginePluginClient - Start cleaning engine
04:23:17.946 [main] INFO  o.c.o.test.engine.EnginePluginClient - Finished cleaning engine
04:23:18.323 [main] INFO  o.c.o.s.cleanup.CleanupScheduler - Stopping cleanup scheduling
04:23:18.323 [main] INFO  o.c.o.s.telemetry.TelemetryScheduler - Stopping telemetry scheduling
04:23:18.323 [main] INFO  o.c.o.s.i.AbstractImportScheduler - Stop scheduling import from IngestedDataSourceDto(super=DataSourceDto(type=ingested, name=null)).
04:23:18.323 [main] INFO  o.c.o.s.i.AbstractImportScheduler - Stop scheduling import from EngineDataSourceDto(super=DataSourceDto(type=engine, name=camunda-bpm)).
04:23:18.323 [main] INFO  o.c.o.s.i.e.EventBasedProcessesInstanceImportScheduler - Stop scheduling ingested event import.
04:23:18.323 [main] INFO  o.c.o.s.i.e.EventTraceStateProcessingScheduler - Stop scheduling event pre-aggregation.
04:23:18.323 [main] INFO  o.c.o.s.i.PlatformUserTaskIdentityCacheService - Stop scheduling platform assignee/candidateGroup identity sync.
04:23:18.324 [main] INFO  o.c.o.s.i.PlatformUserIdentityCacheService - Stop scheduling platform user identity sync.
04:23:18.480 [main] INFO  o.c.o.s.e.OptimizeElasticsearchClientFactory - Initializing Elasticsearch rest client...
04:23:18.482 [main] INFO  o.c.o.s.e.OptimizeElasticsearchClientFactory - Elasticsearch client has successfully been started
04:23:18.484 [main] WARN  o.s.w.c.s.AnnotationConfigWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'eventProcessDefinitionService' defined in URL [jar:file:/home/megglos/git/camunda-optimize/backend/target/optimize-backend-3.7.0-SNAPSHOT.jar!/org/camunda/optimize/service/EventProcessDefinitionService.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'eventProcessDefinitionReader' defined in URL [jar:file:/home/megglos/git/camunda-optimize/backend/target/optimize-backend-3.7.0-SNAPSHOT.jar!/org/camunda/optimize/service/es/reader/EventProcessDefinitionReader.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'optimizeElasticsearchClient' defined in class path resource [org/camunda/optimize/service/es/OptimizeElasticsearchClientConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.camunda.optimize.service.es.OptimizeElasticsearchClient]: Factory method 'optimizeElasticsearchClient' threw exception; nested exception is org.camunda.optimize.service.exceptions.OptimizeRuntimeException: The Elasticsearch Optimize schema version [testVersion] doesn't match the current Optimize version [3.7.0]. Please make sure to run the Upgrade first.
04:23:18.484 [main] ERROR o.s.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'eventProcessDefinitionService' defined in URL [jar:file:/home/megglos/git/camunda-optimize/backend/target/optimize-backend-3.7.0-SNAPSHOT.jar!/org/camunda/optimize/service/EventProcessDefinitionService.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'eventProcessDefinitionReader' defined in URL [jar:file:/home/megglos/git/camunda-optimize/backend/target/optimize-backend-3.7.0-SNAPSHOT.jar!/org/camunda/optimize/service/es/reader/EventProcessDefinitionReader.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'optimizeElasticsearchClient' defined in class path resource [org/camunda/optimize/service/es/OptimizeElasticsearchClientConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.camunda.optimize.service.es.OptimizeElasticsearchClient]: Factory method 'optimizeElasticsearchClient' threw exception; nested exception is org.camunda.optimize.service.exceptions.OptimizeRuntimeException: The Elasticsearch Optimize schema version [testVersion] doesn't match the current Optimize version [3.7.0]. Please make sure to run the Upgrade first.
	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
	at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:944)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
	at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:401)
	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:292)
	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103)
	at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:1067)
	at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:572)
	at org.eclipse.jetty.server.handler.ContextHandler.contextInitialized(ContextHandler.java:996)
	at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:746)
	at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:379)
	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:910)
	at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117)
	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
	at org.eclipse.jetty.server.Server.start(Server.java:423)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
	at org.eclipse.jetty.server.Server.doStart(Server.java:387)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
	at org.camunda.optimize.jetty.EmbeddedCamundaOptimize.startOptimize(EmbeddedCamundaOptimize.java:245)
	at org.camunda.optimize.test.it.extension.TestEmbeddedCamundaOptimize.start(TestEmbeddedCamundaOptimize.java:88)
	at org.camunda.optimize.test.it.extension.EmbeddedOptimizeExtension.startOptimize(EmbeddedOptimizeExtension.java:443)
	at org.camunda.optimize.service.metadata.ElasticMetadataVersionIT.verifyNotStartingIfVersionDoesNotMatch(ElasticMetadataVersionIT.java:80)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:725)
	at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
	at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149)
	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140)
	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:84)
	at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:214)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:210)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:135)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:66)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
	at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
	at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:107)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
	at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)
	at org.junit.platform.launcher.core.SessionPerRequestLauncher.execute(SessionPerRequestLauncher.java:53)
	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.lambda$execute$1(JUnitPlatformProvider.java:199)
	at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:193)
	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:154)
	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:120)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:428)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
	at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:562)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:548)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'eventProcessDefinitionReader' defined in URL [jar:file:/home/megglos/git/camunda-optimize/backend/target/optimize-backend-3.7.0-SNAPSHOT.jar!/org/camunda/optimize/service/es/reader/EventProcessDefinitionReader.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'optimizeElasticsearchClient' defined in class path resource [org/camunda/optimize/service/es/OptimizeElasticsearchClientConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.camunda.optimize.service.es.OptimizeElasticsearchClient]: Factory method 'optimizeElasticsearchClient' threw exception; nested exception is org.camunda.optimize.service.exceptions.OptimizeRuntimeException: The Elasticsearch Optimize schema version [testVersion] doesn't match the current Optimize version [3.7.0]. Please make sure to run the Upgrade first.
	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
	at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1380)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1300)
	at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
	... 113 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'optimizeElasticsearchClient' defined in class path resource [org/camunda/optimize/service/es/OptimizeElasticsearchClientConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.camunda.optimize.service.es.OptimizeElasticsearchClient]: Factory method 'optimizeElasticsearchClient' threw exception; nested exception is org.camunda.optimize.service.exceptions.OptimizeRuntimeException: The Elasticsearch Optimize schema version [testVersion] doesn't match the current Optimize version [3.7.0]. Please make sure to run the Upgrade first.
	at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658)
	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1380)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1300)
	at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
	... 127 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.camunda.optimize.service.es.OptimizeElasticsearchClient]: Factory method 'optimizeElasticsearchClient' threw exception; nested exception is org.camunda.optimize.service.exceptions.OptimizeRuntimeException: The Elasticsearch Optimize schema version [testVersion] doesn't match the current Optimize version [3.7.0]. Please make sure to run the Upgrade first.
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
	at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)
	... 141 common frames omitted
Caused by: org.camunda.optimize.service.exceptions.OptimizeRuntimeException: The Elasticsearch Optimize schema version [testVersion] doesn't match the current Optimize version [3.7.0]. Please make sure to run the Upgrade first.
	at org.camunda.optimize.service.es.schema.ElasticsearchMetadataService.lambda$validateSchemaVersionCompatibility$0(ElasticsearchMetadataService.java:69)
	at java.base/java.util.Optional.ifPresent(Optional.java:183)
	at org.camunda.optimize.service.es.schema.ElasticsearchMetadataService.validateSchemaVersionCompatibility(ElasticsearchMetadataService.java:61)
	at org.camunda.optimize.service.es.schema.ElasticSearchSchemaManager.validateExistingSchemaVersion(ElasticSearchSchemaManager.java:102)
	at org.camunda.optimize.service.es.OptimizeElasticsearchClientFactory.create(OptimizeElasticsearchClientFactory.java:48)
	at org.camunda.optimize.service.es.OptimizeElasticsearchClientConfiguration.createOptimizeElasticsearchClient(OptimizeElasticsearchClientConfiguration.java:35)
	at org.camunda.optimize.service.es.OptimizeElasticsearchClientConfiguration.optimizeElasticsearchClient(OptimizeElasticsearchClientConfiguration.java:30)
	at org.camunda.optimize.service.es.OptimizeElasticsearchClientConfiguration$$EnhancerBySpringCGLIB$$da26448c.CGLIB$optimizeElasticsearchClient$0(<generated>)
	at org.camunda.optimize.service.es.OptimizeElasticsearchClientConfiguration$$EnhancerBySpringCGLIB$$da26448c$$FastClassBySpringCGLIB$$4d113171.invoke(<generated>)
	at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
	at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331)
	at org.camunda.optimize.service.es.OptimizeElasticsearchClientConfiguration$$EnhancerBySpringCGLIB$$da26448c.optimizeElasticsearchClient(<generated>)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
	... 142 common frames omitted
04:23:18.492 [main] ERROR o.c.o.t.i.e.EmbeddedOptimizeExtension - Failed to destroy alert service
java.lang.NullPointerException: null
	at org.camunda.optimize.test.it.extension.EmbeddedOptimizeExtension.getAlertService(EmbeddedOptimizeExtension.java:581)
	at org.camunda.optimize.test.it.extension.EmbeddedOptimizeExtension.stopOptimize(EmbeddedOptimizeExtension.java:458)
	at org.camunda.optimize.service.metadata.ElasticMetadataVersionIT.verifyNotStartingIfVersionDoesNotMatch(ElasticMetadataVersionIT.java:86)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:725)
	at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
	at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149)
	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140)
	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:84)
	at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:214)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:210)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:135)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:66)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
	at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
	at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:107)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
	at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)
	at org.junit.platform.launcher.core.SessionPerRequestLauncher.execute(SessionPerRequestLauncher.java:53)
	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.lambda$execute$1(JUnitPlatformProvider.java:199)
	at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:193)
	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:154)
	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:120)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:428)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
	at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:562)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:548)
04:23:18.629 [main] INFO  o.c.o.s.e.OptimizeElasticsearchClientFactory - Initializing Elasticsearch rest client...
04:23:18.631 [main] INFO  o.c.o.s.e.OptimizeElasticsearchClientFactory - Elasticsearch client has successfully been started
04:23:18.646 [main] INFO  o.c.o.s.e.s.ElasticSearchSchemaManager - Updating Optimize schema...
04:23:18.671 [main] INFO  o.c.o.s.e.s.ElasticSearchSchemaManager - Creating or updating template with name 2--variable-update-instance_v2
04:23:18.690 [main] INFO  o.c.o.s.e.s.ElasticSearchSchemaManager - Creating or updating template with name 2--event_v4
04:23:18.724 [main] INFO  o.c.o.s.e.s.ElasticSearchSchemaManager - Creating or updating template with name 2--external-process-variable_v2
04:23:18.744 [main] INFO  o.c.o.s.e.s.ElasticSearchSchemaManager - Finished updating Optimize schema.
04:23:18.765 [main] INFO  o.c.o.s.i.PlatformUserIdentityCacheService - Initializing platform user identity sync.
04:23:18.765 [main] INFO  o.c.o.s.i.PlatformUserIdentityCacheService - Scheduling platform user identity sync
04:23:18.773 [PlatformUserIdentityCacheService-1] INFO  o.c.o.s.i.PlatformUserIdentityCacheService - platform user identity sync complete
04:23:18.782 [main] INFO  o.c.o.s.i.PlatformUserTaskIdentityCacheService - Initializing platform assignee/candidateGroup identity sync.
04:23:18.783 [main] INFO  o.c.o.s.i.PlatformUserTaskIdentityCacheService - Scheduling platform assignee/candidateGroup identity sync
04:23:18.784 [PlatformUserTaskIdentityCacheService-1] INFO  o.c.o.s.i.PlatformUserTaskIdentityCacheService - platform assignee/candidateGroup identity sync complete
04:23:18.814 [TerminatedSessionService-1] INFO  o.c.o.s.e.w.ElasticsearchWriterUtil - Progress of task (ID:axfcR2ziSOixYNsgv2YXng:7735491) on terminated user sessions with timestamp older than 2021-12-10T03:23:18.809-03:00: 0% (total: 0, updated: 0, created: 0, deleted: 0). Completed is false
04:23:18.818 [main] INFO  o.c.o.s.u.c.e.EventIngestionConfiguration - No ingestion api secret was configured, generated a temporary token [R8CNRiMX6rmuXVWs].
04:23:18.842 [main] INFO  o.c.o.s.telemetry.TelemetryScheduler - Initializing TelemetryScheduler
04:23:18.842 [main] INFO  o.c.o.s.telemetry.TelemetryScheduler - Starting telemetry scheduling
04:23:18.842 [TelemetryScheduler-1] INFO  o.c.o.s.telemetry.TelemetryScheduler - Checking whether telemetry data can be sent.
04:23:18.843 [TelemetryScheduler-1] INFO  o.c.o.s.telemetry.TelemetryScheduler - Telemetry disabled.
04:23:18.967 [main] INFO  o.c.o.s.cleanup.CleanupScheduler - Initializing OptimizeCleanupScheduler
04:23:18.967 [main] INFO  o.c.o.s.cleanup.CleanupScheduler - Stopping cleanup scheduling
04:23:19.154 [main] INFO  o.c.o.t.i.e.TestEmbeddedCamundaOptimize - resetting config, parsing defaultconfig and copying properties
04:23:19.158 [main] INFO  o.c.o.t.i.e.TestEmbeddedCamundaOptimize - done resetting config
04:23:19.159 [main] INFO  o.c.o.s.i.AbstractImportScheduler - Stop scheduling import from IngestedDataSourceDto(super=DataSourceDto(type=ingested, name=null)).
04:23:19.159 [main] INFO  o.c.o.s.i.AbstractImportScheduler - Stop scheduling import from EngineDataSourceDto(super=DataSourceDto(type=engine, name=camunda-bpm)).
04:23:19.167 [main] INFO  o.c.o.s.telemetry.TelemetryScheduler - Initializing TelemetryScheduler
04:23:19.167 [main] INFO  o.c.o.s.telemetry.TelemetryScheduler - Starting telemetry scheduling
04:23:19.168 [main] INFO  o.c.o.s.cleanup.CleanupScheduler - Initializing OptimizeCleanupScheduler
04:23:19.168 [main] INFO  o.c.o.s.cleanup.CleanupScheduler - Stopping cleanup scheduling
04:23:19.177 [main] INFO  o.c.o.s.i.AbstractImportScheduler - Stop scheduling import from IngestedDataSourceDto(super=DataSourceDto(type=ingested, name=null)).
04:23:19.177 [main] INFO  o.c.o.s.i.AbstractImportScheduler - Stop scheduling import from EngineDataSourceDto(super=DataSourceDto(type=engine, name=camunda-bpm)).
04:23:19.177 [main] INFO  o.c.o.t.i.e.TestEmbeddedCamundaOptimize - resetting config, parsing defaultconfig and copying properties
04:23:19.180 [main] INFO  o.c.o.t.i.e.TestEmbeddedCamundaOptimize - done resetting config
04:23:19.180 [main] INFO  o.c.o.s.i.AbstractImportScheduler - Stop scheduling import from IngestedDataSourceDto(super=DataSourceDto(type=ingested, name=null)).
04:23:19.180 [main] INFO  o.c.o.s.i.AbstractImportScheduler - Stop scheduling import from EngineDataSourceDto(super=DataSourceDto(type=engine, name=camunda-bpm)).
04:23:19.185 [main] INFO  o.c.o.s.telemetry.TelemetryScheduler - Initializing TelemetryScheduler
04:23:19.185 [main] INFO  o.c.o.s.telemetry.TelemetryScheduler - Starting telemetry scheduling
04:23:19.185 [main] INFO  o.c.o.s.cleanup.CleanupScheduler - Initializing OptimizeCleanupScheduler
04:23:19.185 [main] INFO  o.c.o.s.cleanup.CleanupScheduler - Stopping cleanup scheduling
04:23:19.187 [main] INFO  o.c.o.t.i.e.ElasticSearchIntegrationTestExtension - Cleaning elasticsearch...
04:23:19.227 [main] INFO  o.c.o.t.i.e.ElasticSearchIntegrationTestExtension - All documents have been wiped out! Elasticsearch has successfully been cleaned!
04:23:19.227 [main] INFO  o.c.o.test.engine.EnginePluginClient - Start cleaning engine
04:23:19.230 [main] INFO  o.c.o.test.engine.EnginePluginClient - Finished cleaning engine
04:23:19.348 [main] INFO  o.c.o.s.cleanup.CleanupScheduler - Stopping cleanup scheduling
04:23:19.349 [main] INFO  o.c.o.s.telemetry.TelemetryScheduler - Stopping telemetry scheduling
04:23:19.349 [main] INFO  o.c.o.s.i.AbstractImportScheduler - Stop scheduling import from IngestedDataSourceDto(super=DataSourceDto(type=ingested, name=null)).
04:23:19.349 [main] INFO  o.c.o.s.i.AbstractImportScheduler - Stop scheduling import from EngineDataSourceDto(super=DataSourceDto(type=engine, name=camunda-bpm)).
04:23:19.349 [main] INFO  o.c.o.s.i.e.EventBasedProcessesInstanceImportScheduler - Stop scheduling ingested event import.
04:23:19.349 [main] INFO  o.c.o.s.i.e.EventTraceStateProcessingScheduler - Stop scheduling event pre-aggregation.
04:23:19.349 [main] INFO  o.c.o.s.i.PlatformUserTaskIdentityCacheService - Stop scheduling platform assignee/candidateGroup identity sync.
04:23:19.350 [main] INFO  o.c.o.s.i.PlatformUserIdentityCacheService - Stop scheduling platform user identity sync.
04:23:19.500 [main] INFO  o.c.o.s.e.OptimizeElasticsearchClientFactory - Initializing Elasticsearch rest client...
04:23:19.502 [main] INFO  o.c.o.s.e.OptimizeElasticsearchClientFactory - Elasticsearch client has successfully been started
04:23:19.516 [main] INFO  o.c.o.s.e.s.ElasticSearchSchemaManager - Updating Optimize schema...
04:23:19.539 [main] INFO  o.c.o.s.e.s.ElasticSearchSchemaManager - Creating or updating template with name 2--variable-update-instance_v2
04:23:19.554 [main] INFO  o.c.o.s.e.s.ElasticSearchSchemaManager - Creating or updating template with name 2--event_v4
04:23:19.591 [main] INFO  o.c.o.s.e.s.ElasticSearchSchemaManager - Creating or updating template with name 2--external-process-variable_v2
04:23:19.609 [main] INFO  o.c.o.s.e.s.ElasticSearchSchemaManager - Finished updating Optimize schema.
04:23:19.631 [main] INFO  o.c.o.s.i.PlatformUserIdentityCacheService - Initializing platform user identity sync.
04:23:19.631 [main] INFO  o.c.o.s.i.PlatformUserIdentityCacheService - Scheduling platform user identity sync
04:23:19.639 [PlatformUserIdentityCacheService-1] INFO  o.c.o.s.i.PlatformUserIdentityCacheService - platform user identity sync complete
04:23:19.647 [main] INFO  o.c.o.s.i.PlatformUserTaskIdentityCacheService - Initializing platform assignee/candidateGroup identity sync.
04:23:19.647 [main] INFO  o.c.o.s.i.PlatformUserTaskIdentityCacheService - Scheduling platform assignee/candidateGroup identity sync
04:23:19.650 [PlatformUserTaskIdentityCacheService-1] INFO  o.c.o.s.i.PlatformUserTaskIdentityCacheService - platform assignee/candidateGroup identity sync complete
04:23:19.674 [TerminatedSessionService-1] INFO  o.c.o.s.e.w.ElasticsearchWriterUtil - Progress of task (ID:axfcR2ziSOixYNsgv2YXng:7738439) on terminated user sessions with timestamp older than 2021-12-10T03:23:19.671-03:00: 0% (total: 0, updated: 0, created: 0, deleted: 0). Completed is false
04:23:19.680 [main] INFO  o.c.o.s.u.c.e.EventIngestionConfiguration - No ingestion api secret was configured, generated a temporary token [x57R0zhaj9qGZCWc].
04:23:19.705 [main] INFO  o.c.o.s.telemetry.TelemetryScheduler - Initializing TelemetryScheduler
04:23:19.705 [main] INFO  o.c.o.s.telemetry.TelemetryScheduler - Starting telemetry scheduling
04:23:19.705 [TelemetryScheduler-1] INFO  o.c.o.s.telemetry.TelemetryScheduler - Checking whether telemetry data can be sent.
04:23:19.706 [TelemetryScheduler-1] INFO  o.c.o.s.telemetry.TelemetryScheduler - Telemetry disabled.
04:23:19.807 [main] INFO  o.c.o.s.cleanup.CleanupScheduler - Initializing OptimizeCleanupScheduler
04:23:19.807 [main] INFO  o.c.o.s.cleanup.CleanupScheduler - Stopping cleanup scheduling
04:23:20.012 [main] INFO  o.c.o.t.i.e.TestEmbeddedCamundaOptimize - resetting config, parsing defaultconfig and copying properties
04:23:20.015 [main] INFO  o.c.o.t.i.e.TestEmbeddedCamundaOptimize - done resetting config
04:23:20.016 [main] INFO  o.c.o.s.i.AbstractImportScheduler - Stop scheduling import from IngestedDataSourceDto(super=DataSourceDto(type=ingested, name=null)).
04:23:20.016 [main] INFO  o.c.o.s.i.AbstractImportScheduler - Stop scheduling import from EngineDataSourceDto(super=DataSourceDto(type=engine, name=camunda-bpm)).
04:23:20.025 [main] INFO  o.c.o.s.telemetry.TelemetryScheduler - Initializing TelemetryScheduler
04:23:20.025 [main] INFO  o.c.o.s.telemetry.TelemetryScheduler - Starting telemetry scheduling
04:23:20.030 [main] INFO  o.c.o.s.cleanup.CleanupScheduler - Initializing OptimizeCleanupScheduler
04:23:20.030 [main] INFO  o.c.o.s.cleanup.CleanupScheduler - Stopping cleanup scheduling
04:23:20.039 [main] INFO  o.c.o.s.i.AbstractImportScheduler - Stop scheduling import from IngestedDataSourceDto(super=DataSourceDto(type=ingested, name=null)).
04:23:20.039 [main] INFO  o.c.o.s.i.AbstractImportScheduler - Stop scheduling import from EngineDataSourceDto(super=DataSourceDto(type=engine, name=camunda-bpm)).
04:23:20.039 [main] INFO  o.c.o.t.i.e.TestEmbeddedCamundaOptimize - resetting config, parsing defaultconfig and copying properties
04:23:20.042 [main] INFO  o.c.o.t.i.e.TestEmbeddedCamundaOptimize - done resetting config
04:23:20.042 [main] INFO  o.c.o.s.i.AbstractImportScheduler - Stop scheduling import from IngestedDataSourceDto(super=DataSourceDto(type=ingested, name=null)).
04:23:20.042 [main] INFO  o.c.o.s.i.AbstractImportScheduler - Stop scheduling import from EngineDataSourceDto(super=DataSourceDto(type=engine, name=camunda-bpm)).
04:23:20.047 [main] INFO  o.c.o.s.telemetry.TelemetryScheduler - Initializing TelemetryScheduler
04:23:20.047 [main] INFO  o.c.o.s.telemetry.TelemetryScheduler - Starting telemetry scheduling
04:23:20.048 [main] INFO  o.c.o.s.cleanup.CleanupScheduler - Initializing OptimizeCleanupScheduler
04:23:20.048 [main] INFO  o.c.o.s.cleanup.CleanupScheduler - Stopping cleanup scheduling
04:23:20.050 [main] INFO  o.c.o.t.i.e.ElasticSearchIntegrationTestExtension - Cleaning elasticsearch...
04:23:20.090 [main] INFO  o.c.o.t.i.e.ElasticSearchIntegrationTestExtension - All documents have been wiped out! Elasticsearch has successfully been cleaned!
04:23:20.090 [main] INFO  o.c.o.test.engine.EnginePluginClient - Start cleaning engine
04:23:20.093 [main] INFO  o.c.o.test.engine.EnginePluginClient - Finished cleaning engine
04:23:20.210 [main] INFO  o.c.o.s.cleanup.CleanupScheduler - Stopping cleanup scheduling
04:23:20.210 [main] INFO  o.c.o.s.telemetry.TelemetryScheduler - Stopping telemetry scheduling
04:23:20.210 [main] INFO  o.c.o.s.i.AbstractImportScheduler - Stop scheduling import from IngestedDataSourceDto(super=DataSourceDto(type=ingested, name=null)).
04:23:20.210 [main] INFO  o.c.o.s.i.AbstractImportScheduler - Stop scheduling import from EngineDataSourceDto(super=DataSourceDto(type=engine, name=camunda-bpm)).
04:23:20.210 [main] INFO  o.c.o.s.i.e.EventBasedProcessesInstanceImportScheduler - Stop scheduling ingested event import.
04:23:20.210 [main] INFO  o.c.o.s.i.e.EventTraceStateProcessingScheduler - Stop scheduling event pre-aggregation.
04:23:20.211 [main] INFO  o.c.o.s.i.PlatformUserTaskIdentityCacheService - Stop scheduling platform assignee/candidateGroup identity sync.
04:23:20.211 [main] INFO  o.c.o.s.i.PlatformUserIdentityCacheService - Stop scheduling platform user identity sync.
04:23:20.354 [main] INFO  o.c.o.s.e.OptimizeElasticsearchClientFactory - Initializing Elasticsearch rest client...
04:23:20.357 [main] INFO  o.c.o.s.e.OptimizeElasticsearchClientFactory - Elasticsearch client has successfully been started
04:23:20.359 [main] WARN  o.s.w.c.s.AnnotationConfigWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'eventProcessDefinitionService' defined in URL [jar:file:/home/megglos/git/camunda-optimize/backend/target/optimize-backend-3.7.0-SNAPSHOT.jar!/org/camunda/optimize/service/EventProcessDefinitionService.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'eventProcessDefinitionReader' defined in URL [jar:file:/home/megglos/git/camunda-optimize/backend/target/optimize-backend-3.7.0-SNAPSHOT.jar!/org/camunda/optimize/service/es/reader/EventProcessDefinitionReader.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'optimizeElasticsearchClient' defined in class path resource [org/camunda/optimize/service/es/OptimizeElasticsearchClientConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.camunda.optimize.service.es.OptimizeElasticsearchClient]: Factory method 'optimizeElasticsearchClient' threw exception; nested exception is org.camunda.optimize.service.exceptions.OptimizeRuntimeException: Metadata search returned [3] hits
04:23:20.359 [main] ERROR o.s.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'eventProcessDefinitionService' defined in URL [jar:file:/home/megglos/git/camunda-optimize/backend/target/optimize-backend-3.7.0-SNAPSHOT.jar!/org/camunda/optimize/service/EventProcessDefinitionService.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'eventProcessDefinitionReader' defined in URL [jar:file:/home/megglos/git/camunda-optimize/backend/target/optimize-backend-3.7.0-SNAPSHOT.jar!/org/camunda/optimize/service/es/reader/EventProcessDefinitionReader.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'optimizeElasticsearchClient' defined in class path resource [org/camunda/optimize/service/es/OptimizeElasticsearchClientConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.camunda.optimize.service.es.OptimizeElasticsearchClient]: Factory method 'optimizeElasticsearchClient' threw exception; nested exception is org.camunda.optimize.service.exceptions.OptimizeRuntimeException: Metadata search returned [3] hits
	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
	at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:944)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
	at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:401)
	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:292)
	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103)
	at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:1067)
	at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:572)
	at org.eclipse.jetty.server.handler.ContextHandler.contextInitialized(ContextHandler.java:996)
	at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:746)
	at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:379)
	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:910)
	at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:117)
	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:169)
	at org.eclipse.jetty.server.Server.start(Server.java:423)
	at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:110)
	at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:97)
	at org.eclipse.jetty.server.Server.doStart(Server.java:387)
	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
	at org.camunda.optimize.jetty.EmbeddedCamundaOptimize.startOptimize(EmbeddedCamundaOptimize.java:245)
	at org.camunda.optimize.test.it.extension.TestEmbeddedCamundaOptimize.start(TestEmbeddedCamundaOptimize.java:88)
	at org.camunda.optimize.test.it.extension.EmbeddedOptimizeExtension.startOptimize(EmbeddedOptimizeExtension.java:443)
	at org.camunda.optimize.service.metadata.ElasticMetadataVersionIT.verifyNotStartingIfMetadataIsCorrupted(ElasticMetadataVersionIT.java:57)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:725)
	at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
	at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149)
	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140)
	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:84)
	at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:214)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:210)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:135)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:66)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
	at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
	at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:107)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
	at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)
	at org.junit.platform.launcher.core.SessionPerRequestLauncher.execute(SessionPerRequestLauncher.java:53)
	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.lambda$execute$1(JUnitPlatformProvider.java:199)
	at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:193)
	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:154)
	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:120)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:428)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
	at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:562)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:548)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'eventProcessDefinitionReader' defined in URL [jar:file:/home/megglos/git/camunda-optimize/backend/target/optimize-backend-3.7.0-SNAPSHOT.jar!/org/camunda/optimize/service/es/reader/EventProcessDefinitionReader.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'optimizeElasticsearchClient' defined in class path resource [org/camunda/optimize/service/es/OptimizeElasticsearchClientConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.camunda.optimize.service.es.OptimizeElasticsearchClient]: Factory method 'optimizeElasticsearchClient' threw exception; nested exception is org.camunda.optimize.service.exceptions.OptimizeRuntimeException: Metadata search returned [3] hits
	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
	at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1380)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1300)
	at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
	... 113 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'optimizeElasticsearchClient' defined in class path resource [org/camunda/optimize/service/es/OptimizeElasticsearchClientConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.camunda.optimize.service.es.OptimizeElasticsearchClient]: Factory method 'optimizeElasticsearchClient' threw exception; nested exception is org.camunda.optimize.service.exceptions.OptimizeRuntimeException: Metadata search returned [3] hits
	at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658)
	at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208)
	at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1380)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1300)
	at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:887)
	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
	... 127 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.camunda.optimize.service.es.OptimizeElasticsearchClient]: Factory method 'optimizeElasticsearchClient' threw exception; nested exception is org.camunda.optimize.service.exceptions.OptimizeRuntimeException: Metadata search returned [3] hits
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
	at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)
	... 141 common frames omitted
Caused by: org.camunda.optimize.service.exceptions.OptimizeRuntimeException: Metadata search returned [3] hits
	at org.camunda.optimize.service.es.schema.ElasticsearchMetadataService.readMetadata(ElasticsearchMetadataService.java:94)
	at org.camunda.optimize.service.es.schema.ElasticsearchMetadataService.validateSchemaVersionCompatibility(ElasticsearchMetadataService.java:61)
	at org.camunda.optimize.service.es.schema.ElasticSearchSchemaManager.validateExistingSchemaVersion(ElasticSearchSchemaManager.java:102)
	at org.camunda.optimize.service.es.OptimizeElasticsearchClientFactory.create(OptimizeElasticsearchClientFactory.java:48)
	at org.camunda.optimize.service.es.OptimizeElasticsearchClientConfiguration.createOptimizeElasticsearchClient(OptimizeElasticsearchClientConfiguration.java:35)
	at org.camunda.optimize.service.es.OptimizeElasticsearchClientConfiguration.optimizeElasticsearchClient(OptimizeElasticsearchClientConfiguration.java:30)
	at org.camunda.optimize.service.es.OptimizeElasticsearchClientConfiguration$$EnhancerBySpringCGLIB$$da26448c.CGLIB$optimizeElasticsearchClient$0(<generated>)
	at org.camunda.optimize.service.es.OptimizeElasticsearchClientConfiguration$$EnhancerBySpringCGLIB$$da26448c$$FastClassBySpringCGLIB$$4d113171.invoke(<generated>)
	at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
	at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331)
	at org.camunda.optimize.service.es.OptimizeElasticsearchClientConfiguration$$EnhancerBySpringCGLIB$$da26448c.optimizeElasticsearchClient(<generated>)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
	... 142 common frames omitted
04:23:20.376 [main] ERROR o.c.o.t.i.e.EmbeddedOptimizeExtension - Failed to destroy alert service
java.lang.NullPointerException: null
	at org.camunda.optimize.test.it.extension.EmbeddedOptimizeExtension.getAlertService(EmbeddedOptimizeExtension.java:581)
	at org.camunda.optimize.test.it.extension.EmbeddedOptimizeExtension.stopOptimize(EmbeddedOptimizeExtension.java:458)
	at org.camunda.optimize.service.metadata.ElasticMetadataVersionIT.verifyNotStartingIfMetadataIsCorrupted(ElasticMetadataVersionIT.java:61)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:725)
	at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
	at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149)
	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140)
	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:84)
	at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104)
	at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:214)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:210)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:135)
	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:66)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
	at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
	at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:107)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67)
	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
	at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)
	at org.junit.platform.launcher.core.SessionPerRequestLauncher.execute(SessionPerRequestLauncher.java:53)
	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.lambda$execute$1(JUnitPlatformProvider.java:199)
	at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:193)
	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:154)
	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:120)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:428)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
	at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:562)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:548)
04:23:20.538 [main] INFO  o.c.o.s.e.OptimizeElasticsearchClientFactory - Initializing Elasticsearch rest client...
04:23:20.540 [main] INFO  o.c.o.s.e.OptimizeElasticsearchClientFactory - Elasticsearch client has successfully been started
04:23:20.554 [main] INFO  o.c.o.s.e.s.ElasticSearchSchemaManager - Updating Optimize schema...
04:23:20.574 [main] INFO  o.c.o.s.e.s.ElasticSearchSchemaManager - Creating or updating template with name 2--variable-update-instance_v2
04:23:20.587 [main] INFO  o.c.o.s.e.s.ElasticSearchSchemaManager - Creating or updating template with name 2--event_v4
04:23:20.614 [main] INFO  o.c.o.s.e.s.ElasticSearchSchemaManager - Creating or updating template with name 2--external-process-variable_v2
04:23:20.629 [main] INFO  o.c.o.s.e.s.ElasticSearchSchemaManager - Finished updating Optimize schema.
04:23:20.648 [main] INFO  o.c.o.s.i.PlatformUserIdentityCacheService - Initializing platform user identity sync.
04:23:20.648 [main] INFO  o.c.o.s.i.PlatformUserIdentityCacheService - Scheduling platform user identity sync
04:23:20.657 [PlatformUserIdentityCacheService-1] INFO  o.c.o.s.i.PlatformUserIdentityCacheService - platform user identity sync complete
04:23:20.667 [main] INFO  o.c.o.s.i.PlatformUserTaskIdentityCacheService - Initializing platform assignee/candidateGroup identity sync.
04:23:20.668 [main] INFO  o.c.o.s.i.PlatformUserTaskIdentityCacheService - Scheduling platform assignee/candidateGroup identity sync
04:23:20.669 [PlatformUserTaskIdentityCacheService-1] INFO  o.c.o.s.i.PlatformUserTaskIdentityCacheService - platform assignee/candidateGroup identity sync complete
04:23:20.693 [TerminatedSessionService-1] INFO  o.c.o.s.e.w.ElasticsearchWriterUtil - Progress of task (ID:axfcR2ziSOixYNsgv2YXng:7742029) on terminated user sessions with timestamp older than 2021-12-10T03:23:20.690-03:00: 0% (total: 0, updated: 0, created: 0, deleted: 0). Completed is false
04:23:20.698 [main] INFO  o.c.o.s.u.c.e.EventIngestionConfiguration - No ingestion api secret was configured, generated a temporary token [ORND4Osdx86ACs6s].
04:23:20.717 [main] INFO  o.c.o.s.telemetry.TelemetryScheduler - Initializing TelemetryScheduler
04:23:20.717 [main] INFO  o.c.o.s.telemetry.TelemetryScheduler - Starting telemetry scheduling
04:23:20.718 [TelemetryScheduler-1] INFO  o.c.o.s.telemetry.TelemetryScheduler - Checking whether telemetry data can be sent.
04:23:20.718 [TelemetryScheduler-1] INFO  o.c.o.s.telemetry.TelemetryScheduler - Telemetry disabled.
04:23:20.832 [main] INFO  o.c.o.s.cleanup.CleanupScheduler - Initializing OptimizeCleanupScheduler
04:23:20.832 [main] INFO  o.c.o.s.cleanup.CleanupScheduler - Stopping cleanup scheduling
04:23:21.018 [main] INFO  o.c.o.t.i.e.TestEmbeddedCamundaOptimize - resetting config, parsing defaultconfig and copying properties
04:23:21.021 [main] INFO  o.c.o.t.i.e.TestEmbeddedCamundaOptimize - done resetting config
04:23:21.022 [main] INFO  o.c.o.s.i.AbstractImportScheduler - Stop scheduling import from IngestedDataSourceDto(super=DataSourceDto(type=ingested, name=null)).
04:23:21.022 [main] INFO  o.c.o.s.i.AbstractImportScheduler - Stop scheduling import from EngineDataSourceDto(super=DataSourceDto(type=engine, name=camunda-bpm)).
04:23:21.030 [main] INFO  o.c.o.s.telemetry.TelemetryScheduler - Initializing TelemetryScheduler
04:23:21.030 [main] INFO  o.c.o.s.telemetry.TelemetryScheduler - Starting telemetry scheduling
04:23:21.030 [main] INFO  o.c.o.s.cleanup.CleanupScheduler - Initializing OptimizeCleanupScheduler
04:23:21.030 [main] INFO  o.c.o.s.cleanup.CleanupScheduler - Stopping cleanup scheduling
04:23:21.039 [main] INFO  o.c.o.s.i.AbstractImportScheduler - Stop scheduling import from IngestedDataSourceDto(super=DataSourceDto(type=ingested, name=null)).
04:23:21.039 [main] INFO  o.c.o.s.i.AbstractImportScheduler - Stop scheduling import from EngineDataSourceDto(super=DataSourceDto(type=engine, name=camunda-bpm)).
04:23:21.039 [main] INFO  o.c.o.t.i.e.TestEmbeddedCamundaOptimize - resetting config, parsing defaultconfig and copying properties
04:23:21.041 [main] INFO  o.c.o.t.i.e.TestEmbeddedCamundaOptimize - done resetting config
04:23:21.042 [main] INFO  o.c.o.s.i.AbstractImportScheduler - Stop scheduling import from IngestedDataSourceDto(super=DataSourceDto(type=ingested, name=null)).
04:23:21.042 [main] INFO  o.c.o.s.i.AbstractImportScheduler - Stop scheduling import from EngineDataSourceDto(super=DataSourceDto(type=engine, name=camunda-bpm)).
04:23:21.047 [main] INFO  o.c.o.s.telemetry.TelemetryScheduler - Initializing TelemetryScheduler
04:23:21.047 [main] INFO  o.c.o.s.telemetry.TelemetryScheduler - Starting telemetry scheduling
04:23:21.048 [main] INFO  o.c.o.s.cleanup.CleanupScheduler - Initializing OptimizeCleanupScheduler
04:23:21.048 [main] INFO  o.c.o.s.cleanup.CleanupScheduler - Stopping cleanup scheduling
