diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/vectors/VectorsFeatureSetUsage.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/vectors/VectorsFeatureSetUsage.java index a5eb5409f21af..62568fa957dfe 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/vectors/VectorsFeatureSetUsage.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/vectors/VectorsFeatureSetUsage.java @@ -37,7 +37,7 @@ public void writeTo(StreamOutput out) throws IOException { out.writeVInt(numDenseVectorFields); // Older versions recorded the number of sparse vector fields. if (out.getVersion().before(Version.V_8_0_0)) { - out.writeInt(0); + out.writeVInt(0); } out.writeVInt(avgDenseVectorDims); } diff --git a/x-pack/qa/rolling-upgrade/src/test/resources/rest-api-spec/test/mixed_cluster/100_analytics_usage.yml b/x-pack/qa/rolling-upgrade/src/test/resources/rest-api-spec/test/mixed_cluster/100_analytics_usage.yml index f0fb80fcc8dcd..f0aafeccf5ca4 100644 --- a/x-pack/qa/rolling-upgrade/src/test/resources/rest-api-spec/test/mixed_cluster/100_analytics_usage.yml +++ b/x-pack/qa/rolling-upgrade/src/test/resources/rest-api-spec/test/mixed_cluster/100_analytics_usage.yml @@ -19,8 +19,8 @@ setup: --- "Basic test for usage stats on analytics indices": - skip: - version: "all" - reason: "AwaitsFix https://github.com/elastic/elasticsearch/issues/55378" + version: " - 7.7.99" + reason: "stats are not working in earlier versions" - do: xpack.info: {} - match: { features.analytics.available: true }