ElasticsearchException getRootCause infinite loop

Hi,

The ElasticsearchException#getRootCause can result in an infinite loop if there is cycle in the causes.
We run into such case because the ElasticsearchException was serialized at some point in our code.

For information a correct implementation of this method is done on apache common lib ExceptionUtils#getRootCause.

Let me know if it worths filling an issue.

Regards
ben

1 Like

yes, please do so. Also if you got a reproduction please attach it.

Thanks a lot!

--Alex

Issue created: https://github.com/elastic/elasticsearch/issues/33930
with a PR: https://github.com/elastic/elasticsearch/pull/33932

ben

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.