Skip to content

Commit

Permalink
Add comment on local state combined plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
henningandersen committed Apr 12, 2021
1 parent 3847580 commit 1c4c4ae
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1c4c4ae

Please sign in to comment.