Hello,
I used a opensearch 2.4.1 in my server. If I can try add a alerts(monitor) I use a type “Per document monitor” I receive error: mapper [type] cannot be changed from type [text] to [keyword]
[ERROR][o.o.b.OpenSearchUncaughtExceptionHandler] [node-1] uncaught exception in thread [DefaultDispatcher-worker-1]
java.lang.IllegalArgumentException: mapper [type] cannot be changed from type [text] to [keyword]
at org.opensearch.index.mapper.ParametrizedFieldMapper.merge(ParametrizedFieldMapper.java:112) ~[opensearch-2.4.1.jar:2.4.1]
at org.opensearch.index.mapper.ParametrizedFieldMapper.merge(ParametrizedFieldMapper.java:76) ~[opensearch-2.4.1.jar:2.4.1]
at org.opensearch.index.mapper.ObjectMapper.doMerge(ObjectMapper.java:616) ~[opensearch-2.4.1.jar:2.4.1]
at org.opensearch.index.mapper.RootObjectMapper.doMerge(RootObjectMapper.java:350) ~[opensearch-2.4.1.jar:2.4.1]
at org.opensearch.index.mapper.ObjectMapper.merge(ObjectMapper.java:575) ~[opensearch-2.4.1.jar:2.4.1]
at org.opensearch.index.mapper.RootObjectMapper.merge(RootObjectMapper.java:345) ~[opensearch-2.4.1.jar:2.4.1]
at org.opensearch.index.mapper.Mapping.merge(Mapping.java:129) ~[opensearch-2.4.1.jar:2.4.1]
at org.opensearch.index.mapper.DocumentMapper.merge(DocumentMapper.java:307) ~[opensearch-2.4.1.jar:2.4.1]
at org.opensearch.cluster.metadata.MetadataMappingService$PutMappingExecutor.applyRequest(MetadataMappingService.java:271) ~[opensearch-2.4.1.jar:2.4.1]
at org.opensearch.cluster.metadata.MetadataMappingService$PutMappingExecutor.execute(MetadataMappingService.java:237) ~[opensearch-2.4.1.jar:2.4.1]
at org.opensearch.cluster.service.MasterService.executeTasks(MasterService.java:843) ~[opensearch-2.4.1.jar:2.4.1]
at org.opensearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:414) ~[opensearch-2.4.1.jar:2.4.1]
at org.opensearch.cluster.service.MasterService.runTasks(MasterService.java:285) ~[opensearch-2.4.1.jar:2.4.1]
at org.opensearch.cluster.service.MasterService$Batcher.run(MasterService.java:196) ~[opensearch-2.4.1.jar:2.4.1]
at org.opensearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:176) ~[opensearch-2.4.1.jar:2.4.1]
at org.opensearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:214) ~[opensearch-2.4.1.jar:2.4.1]
at org.opensearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:747) ~[opensearch-2.4.1.jar:2.4.1]
at org.opensearch.common.util.concurrent.PrioritizedOpenSearchThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedOpenSearchThreadPoolExecutor.java:282) ~[opensearch-2.4.1.jar:2.4.1]
at org.opensearch.common.util.concurrent.PrioritizedOpenSearchThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedOpenSearchThreadPoolExecutor.java:245) ~[opensearch-2.4.1.jar:2.4.1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
can you try help me?
Thank you.