After upgrading ES from 7.9 to 7.17 ES is throwing this exception "org.elasticsearch.action.UnavailableShardsException: [ . async—searchl [01 primary shard is not
active Timeout: [1m". Due to which Kibana isn't returning any result and just hung.
Our index storage is kept in external disk. Before doing the update VM snapshots were taken (excluding the index storage drive). Upgrade was rolled back (by reverting VM snapshots) as we had issue in kibana upgrade. Again we upgraded to 7.17 and this time all came up but, ES started to throw this exception and due to this Kibana is hung.
Any lead to fix this would be greatly appreciated.
Please don't post pictures of text, logs or code. They are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them
[2023-01-19T00:00:02,544][WARN ][r.suppressed ] [xxxxx] path: /xxx-*/_async_search, params: {ignore_unavailable=true, index=xxxx-*, keep_on_completion=true, keep_alive=604800000ms, batched_reduce_size=64, wait_for_completion_timeout=100ms, enable_fields_emulation=true, track_total_hits=true}
org.elasticsearch.action.UnavailableShardsException: [.async-search][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[.async-search][0]] containing [index {[.async-search][_doc][2_lisz2cT3i6en7A3Pz8uA], source[n/a, actual length: [2.9kb], max length: 2kb]}]]
at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase.retryBecauseUnavailable(TransportReplicationAction.java:1077) [elasticsearch-7.17.6.jar:7.17.6]
at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase.doRun(TransportReplicationAction.java:873) [elasticsearch-7.17.6.jar:7.17.6]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) [elasticsearch-7.17.6.jar:7.17.6]
at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase$2.onTimeout(TransportReplicationAction.java:1032) [elasticsearch-7.17.6.jar:7.17.6]
at org.elasticsearch.cluster.ClusterStateObserver$ContextPreservingListener.onTimeout(ClusterStateObserver.java:345) [elasticsearch-7.17.6.jar:7.17.6]
at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:263) [elasticsearch-7.17.6.jar:7.17.6]
at org.elasticsearch.cluster.service.ClusterApplierService$NotifyTimeout.run(ClusterApplierService.java:660) [elasticsearch-7.17.6.jar:7.17.6]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:718) [elasticsearch-7.17.6.jar:7.17.6]
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) [?:?]
[2023-01-19T00:00:02,544][WARN ][r.suppressed ] [xxxxx] path: /xxxxx-*/_async_search, params: {ignore_unavailable=true, index=xxxx-*, keep_on_completion=true, keep_alive=604800000ms, batched_reduce_size=64, wait_for_completion_timeout=100ms, enable_fields_emulation=true, track_total_hits=true}
org.elasticsearch.action.UnavailableShardsException: [.async-search][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[.async-search][0]] containing [index {[.async-search][_doc][6_ibY0P7RuCTUbbhUF0Ugg], source[{"headers":{"_xpack_security_authentication":"i9W1AwAHbW9uaXRvcgIPbW9uaXRvcmluZ191c2VyB21vbml0b3IKAAEKTW9uaXRvcmluZwEAAQANbG1pLWVsbTAwMS1wMQ5kZWZhdWx0X25hdGl2ZQZuYXRpdmUAAAoA"},"expiration_time":1674691142453,"result":"i9W1A0RGTABi9HDLikpLDPeK8nVzNA7NC3MJcwvLjMzNCAvKcgqLMkpOTQo3NAg0MHVLdE8JjYwIMwzODQoNrMo29PcIy06pyq/wd0k28K3yNWZgZGRgqD/AAAaMjGzFJalFucUqZobJiabmaYa6JmaWKbqGhqnmuolpBka6ZpapJuYGiWnmJobmXCzsBYl5qTmeKQww9Qb41PNl5gENL0vMCS4pysxLZ2A2MyjmKE4tykwtRjICr5WcJZm5qW6ZqTkpDFypZal5JfEggf9MjCwgzAX0C3NRYrkk2DNMDIzy8mAWmxzEd63Hg+JNQfTruMemAAAAAP//AwA="}]}]]
at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase.retryBecauseUnavailable(TransportReplicationAction.java:1077) [elasticsearch-7.17.6.jar:7.17.6]
at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase.doRun(TransportReplicationAction.java:873) [elasticsearch-7.17.6.jar:7.17.6]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) [elasticsearch-7.17.6.jar:7.17.6]
at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase$2.onTimeout(TransportReplicationAction.java:1032) [elasticsearch-7.17.6.jar:7.17.6]
at org.elasticsearch.cluster.ClusterStateObserver$ContextPreservingListener.onTimeout(ClusterStateObserver.java:345) [elasticsearch-7.17.6.jar:7.17.6]
at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:263) [elasticsearch-7.17.6.jar:7.17.6]
at org.elasticsearch.cluster.service.ClusterApplierService$NotifyTimeout.run(ClusterApplierService.java:660) [elasticsearch-7.17.6.jar:7.17.6]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:718) [elasticsearch-7.17.6.jar:7.17.6]
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) [?:?]
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.