[BUG] intermittent test failure
Closed this issue · 0 comments
jillesvangurp commented
Looks like we need to delete templates before recreating.
DocumentationTest > documentation() FAILED
java.lang.ExceptionInInitializerError
at documentation.manual.Manual_indexKt.<clinit>(manual-index.kt:55)
at documentation.DocumentationTestKt.<clinit>(DocumentationTest.kt:40)
at documentation.DocumentationTest.documentation(DocumentationTest.kt:52)
Caused by:
com.jillesvangurp.ktsearch.RestException: RequestIsWrong 400: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"index template [my-logs-template] has index patterns [logs*] matching patterns from existing templates [my-template] with patterns (my-template => [logs*]) that have the same priority [0], multiple index templates may not match during index creation, please use a different priority"}],"type":"illegal_argument_exception","reason":"index template [my-logs-template] has index patterns [logs*] matching patterns from existing templates [my-template] with patterns (my-template => [logs*]) that have the same priority [0], multiple index templates may not match during index creation, please use a different priority"},"status":400}
at app//com.jillesvangurp.ktsearch.RestclientKt.asResult(Restclient.kt:92)
at app//com.jillesvangurp.ktsearch.Request_dslKt.put(request-dsl.kt:131)
at app//com.jillesvangurp.ktsearch.Request_dslKt$put$1.invokeSuspend(request-dsl.kt)
at app//kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at app//kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at app//kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:284)
at app//kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:85)
at app//kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
at app//kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
at app//kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)
at app//kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
at app//com.jillesvangurp.kotlin4example.Kotlin4Example.suspendingBlock(Kotlin4Example.kt:307)
at app//com.jillesvangurp.kotlin4example.Kotlin4Example.suspendingBlock(Kotlin4Example.kt:271)
at app//com.jillesvangurp.kotlin4example.Kotlin4Example.suspendingBlock$default(Kotlin4Example.kt:259)
at app//documentation.manual.bulk.indexmanagement.DatastreamsKt$dataStreamsMd$1$1.invoke(datastreams.kt:23)
at app//documentation.manual.bulk.indexmanagement.DatastreamsKt$dataStreamsMd$1$1.invoke(datastreams.kt:21)
at app//com.jillesvangurp.kotlin4example.Kotlin4Example.section(Kotlin4Example.kt:60)
at app//documentation.manual.bulk.indexmanagement.DatastreamsKt$dataStreamsMd$1.invoke(datastreams.kt:21)
at app//documentation.manual.bulk.indexmanagement.DatastreamsKt$dataStreamsMd$1.invoke(datastreams.kt:11)
at app//com.jillesvangurp.kotlin4example.Kotlin4Example$Companion.markdown(Kotlin4Example.kt:426)
at app//com.jillesvangurp.kotlin4example.SourceRepository.md(SourceRepository.kt:10)
at app//documentation.manual.bulk.indexmanagement.DatastreamsKt.<clinit>(datastreams.kt:11)
... 3 more