From 1c4c4aee16fd36ad5f60eb117efe323b0ec10cf6 Mon Sep 17 00:00:00 2001 From: Henning Andersen Date: Mon, 12 Apr 2021 19:42:08 +0200 Subject: [PATCH] Add comment on local state combined plugin --- .../shards/LocalStateAutoscalingAndSearchableSnapshots.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/x-pack/plugin/autoscaling/src/internalClusterTest/java/org/elasticsearch/xpack/autoscaling/shards/LocalStateAutoscalingAndSearchableSnapshots.java b/x-pack/plugin/autoscaling/src/internalClusterTest/java/org/elasticsearch/xpack/autoscaling/shards/LocalStateAutoscalingAndSearchableSnapshots.java index 703820f3bd6f3..a1864df3cf602 100644 --- a/x-pack/plugin/autoscaling/src/internalClusterTest/java/org/elasticsearch/xpack/autoscaling/shards/LocalStateAutoscalingAndSearchableSnapshots.java +++ b/x-pack/plugin/autoscaling/src/internalClusterTest/java/org/elasticsearch/xpack/autoscaling/shards/LocalStateAutoscalingAndSearchableSnapshots.java @@ -12,6 +12,10 @@ import org.elasticsearch.xpack.autoscaling.LocalStateAutoscaling; import org.elasticsearch.xpack.searchablesnapshots.SearchableSnapshots; +/** + * We need a local state plugin for searchable snapshots too (test sources are not exposed). + * The local state plugin is necessary to avoid touching the "static SetOnce" licenseState field in XPackPlugin. + */ public class LocalStateAutoscalingAndSearchableSnapshots extends LocalStateAutoscaling { public LocalStateAutoscalingAndSearchableSnapshots(final Settings settings) {