# 7.10.0 elasticsearch period crash by stackoverflow

**URL:** https://discuss.elastic.co/t/7-10-0-elasticsearch-period-crash-by-stackoverflow/362864
**Category:** Elasticsearch
**Created:** [July 10, 2024, 10:02am UTC](https://discuss.elastic.co/t/7-10-0-elasticsearch-period-crash-by-stackoverflow/362864 "2024-07-10T10:02:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![luye19870406](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luye19870406/32/135942_2.png) [@luye19870406](https://discuss.elastic.co/u/luye19870406)
#### Post date: [July 10, 2024, 10:02am UTC](https://discuss.elastic.co/t/7-10-0-elasticsearch-period-crash-by-stackoverflow/362864/1 "2024-07-10T10:02:45Z")

</div>

hello..recentlly I got a weird elasticsearch crash problem and it lasts nearly one month .since I reindex some of my index to enlarge the shards from 1 to 6..and the error like following

```auto
[o.e.b.ElasticsearchUncaughtExceptionHandler] [es-cn-9lb3e7861000eg3q5-7819d1df-0001] fatal error in thread [elasticsearch[es-cn-9lb3e7861000eg3q5-7819d1df-0001][clusterApplierService#updateTask][T#1]], exiting
java.lang.StackOverflowError: null
at org.elasticsearch.index.mapper.ParametrizedFieldMapper$Parameter.getDefaultValue(ParametrizedFieldMapper.java:214) ~[elasticsearch-7.10.0.jar:7.10.0]
at org.elasticsearch.index.mapper.ParametrizedFieldMapper$Parameter.getDefaultValue(ParametrizedFieldMapper.java:214) ~[elasticsearch-7.10.0.jar:7.10.0]
at org.elasticsearch.index.mapper.ParametrizedFieldMapper$Parameter.getDefaultValue(ParametrizedFieldMapper.java:214) ~[elasticsearch-7.10.0.jar:7.10.0]
at org.elasticsearch.index.mapper.ParametrizedFieldMapper$Parameter.getDefaultValue(ParametrizedFieldMapper.java:214) ~[elasticsearch-7.10.0.jar:7.10.0]
at org.elasticsearch.index.mapper.ParametrizedFieldMapper$Parameter.getDefaultValue(ParametrizedFieldMapper.java:214) ~[elasticsearch-7.10.0.jar:7.10.0]
at org.elasticsearch.index.mapper.ParametrizedFieldMapper$Parameter.getDefaultValue(ParametrizedFieldMapper.java:214) ~[elasticsearch-7.10.0.jar:7.10.0]

```

then I search the source code with elasticsearch 7.10.0 ..find the Parameter.getDefaultValue canbe infinite loop when it is the ` Parameter<NamedAnalyzer>` ..but don't in which case it can be triggered.  
this crash periodlly happens ,in 4:00 10:00 16:00 22:00 ..and every master node crashs one by one ..then the cluster back to normal ..

any idea about this looking forword your replies thanks~

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [July 10, 2024, 11:21am UTC](https://discuss.elastic.co/t/7-10-0-elasticsearch-period-crash-by-stackoverflow/362864/2 "2024-07-10T11:21:41Z")

</div>

I'd upgrade to 7.17 at least. And better is to switch to Elasticsearch 8.14.2.

---

<div class="post-metadata">

### Author: ![luye19870406](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luye19870406/32/135942_2.png) [@luye19870406](https://discuss.elastic.co/u/luye19870406)
#### Post date: [July 11, 2024, 5:28am UTC](https://discuss.elastic.co/t/7-10-0-elasticsearch-period-crash-by-stackoverflow/362864/3 "2024-07-11T05:28:43Z")

</div>

Thanks a lot for replying！！finally I get the exception stack from the `/_nodes/hot_threads` found a period index updating cause the merge error, but don't know why crash every 6 hours instead of crash immediately 🥲 ， whatever currently we can avoide this error ， and may upgrade the version in further
