mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 21:18:31 +00:00
The XPackFeatureSet.Usage writeTo method failed to write the name to the StreamOutput whereas the deserialization code expected it to be the first value present in the StreamInput. This causes xpack usage requests made to nodes other than the master to fail. This change fixes the serialization and adds tests to all of the feature sets to ensure that the usage is serialized properly. Closes elastic/elasticsearch#3072 Original commit: elastic/x-pack-elasticsearch@eccab616ca