Skip to content

StackOverflowError somewhere in the cluster applier thread #36360

@DaveCTurner

Description

@DaveCTurner

A user reported that their master node died with the following exception

[2018-11-16T09:59:05,744][ERROR][o.e.b.ElasticsearchUncaughtExceptionHandler] [REDACTED] fatal error in thread [elasticsearch[REDACTED][clusterApplierService#updateTask][T#1]], exiting
java.lang.StackOverflowError: null
        at java.util.Collections$UnmodifiableList$1.<init>(Collections.java:1339) ~[?:1.8.0_111]
        at java.util.Collections$UnmodifiableList.listIterator(Collections.java:1337) ~[?:1.8.0_111]
        at java.util.Collections$UnmodifiableList$1.<init>(Collections.java:1339) ~[?:1.8.0_111]
        at java.util.Collections$UnmodifiableList.listIterator(Collections.java:1337) ~[?:1.8.0_111]

This repeats until the end of the file. As far as I can tell, this can't be an infinite recursion, but it could be very deeply nested if an unmodifiable list is repeatedly rewrapped.

It is possible this was introduced by #31957 which looks like it might re-wraps some lists in unmodifiableList each time a new DatafeedConfig is constructed.

Metadata

Metadata

Labels

:Core/Infra/ResiliencyKeep running when everything is ok. Die quickly if things go horribly wrong.:mlMachine learning>bugv6.4.2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions