ElasticsearchException getRootCause infinite loop


(bdelbosc) #1

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


(Alexander Reelsen) #2

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

Thanks a lot!

--Alex


(bdelbosc) #3

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

ben


(system) #4

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