Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@
---
"get cluster stats without runtime fields":
- skip:
version: " - 7.99.99"
reason: "cluster stats includes runtime fields from 8.0 on"
version: " - 7.12.99"
reason: "cluster stats includes runtime fields from 7.13 on"
- do:
indices.create:
index: sensor
Expand All @@ -99,8 +99,8 @@
---
"Usage stats with script-less runtime fields":
- skip:
version: " - 7.99.99"
reason: "cluster stats includes runtime fields from 8.0 on"
version: " - 7.12.99"
reason: "cluster stats includes runtime fields from 7.13 on"
- do:
indices.create:
index: sensor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

package org.elasticsearch.action.admin.cluster.stats;

import org.elasticsearch.Version;
import org.elasticsearch.cluster.metadata.IndexMetadata;
import org.elasticsearch.cluster.metadata.MappingMetadata;
import org.elasticsearch.cluster.metadata.Metadata;
Expand Down Expand Up @@ -139,19 +138,13 @@ private static int countOccurrences(String script, String keyword) {

MappingStats(StreamInput in) throws IOException {
fieldTypeStats = Collections.unmodifiableSet(new LinkedHashSet<>(in.readList(IndexFeatureStats::new)));
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
runtimeFieldTypeStats = Collections.unmodifiableSet(new LinkedHashSet<>(in.readList(RuntimeFieldStats::new)));
} else {
runtimeFieldTypeStats = Collections.emptySet();
}
runtimeFieldTypeStats = Collections.unmodifiableSet(new LinkedHashSet<>(in.readList(RuntimeFieldStats::new)));
}

@Override
public void writeTo(StreamOutput out) throws IOException {
out.writeCollection(fieldTypeStats);
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
out.writeCollection(runtimeFieldTypeStats);
}
out.writeCollection(runtimeFieldTypeStats);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@
import org.elasticsearch.xpack.core.rollup.action.StopRollupJobAction;
import org.elasticsearch.xpack.core.rollup.job.RollupJob;
import org.elasticsearch.xpack.core.rollup.job.RollupJobStatus;
import org.elasticsearch.xpack.core.runtimefields.RuntimeFieldsFeatureSetUsage;
import org.elasticsearch.xpack.core.search.action.GetAsyncSearchAction;
import org.elasticsearch.xpack.core.search.action.SubmitAsyncSearchAction;
import org.elasticsearch.xpack.core.searchablesnapshots.SearchableSnapshotFeatureSetUsage;
Expand Down Expand Up @@ -535,8 +534,7 @@ public List<NamedWriteableRegistry.Entry> getNamedWriteables() {
// Data Streams
new NamedWriteableRegistry.Entry(XPackFeatureSet.Usage.class, XPackField.DATA_STREAMS, DataStreamFeatureSetUsage::new),
// Data Tiers
new NamedWriteableRegistry.Entry(XPackFeatureSet.Usage.class, XPackField.DATA_TIERS, DataTiersFeatureSetUsage::new),
new NamedWriteableRegistry.Entry(XPackFeatureSet.Usage.class, "runtime_fields", RuntimeFieldsFeatureSetUsage::new)
new NamedWriteableRegistry.Entry(XPackFeatureSet.Usage.class, XPackField.DATA_TIERS, DataTiersFeatureSetUsage::new)
));

if (RollupV2.isEnabled()) {
Expand Down

This file was deleted.