I'm having an error with a custom plugin I'm working on. The problem is the error only occurs on a development cluster that takes a long time to make changes to. To develop efficiently I debug everything on a local Elasticsearch instance running in Docker on my laptop, but this isn't throwing the error. I've confirmed that the method throwing the error doesn't even get called on my laptop setup.
The error is thrown from the
org.elasticsearch.search.aggregations.support.ValuesSourceAggregationBuilder.java class, in the
protected LeafOnly(StreamInput in, ValuesSourceType valuesSourceType, ValueType targetValueType) method.
So when is this method called? At what point in the process of performing an aggregation is this method called? How can I replicated that part of the process in my local setup?