mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 13:08:29 +00:00
* Fix NPE on FieldStats with mixed cluster on version pre/post 5.2 In 5.2 the FieldStats API can return null min/max values. These values cannot be deserialized by a node with version pre 5.2 so if this node is pick to coordinate a FieldStats request in a mixed cluster an NPE can be thrown. This change prevents the NPE by removing the non serializable FieldStats object directly in the field stats shard request. The filtered fields will not be present in the response when a node pre 5.2 acts as a coordinating node.