Skip to content
Closed
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 @@ -23,10 +23,22 @@
*/
public class DeprecationIssue implements Writeable, ToXContentObject {

/**
* Indicates the level of the deprecation warning.
*/
public enum Level implements Writeable {
NONE,
/**
* No action required in the cluster itself, but it is advised to read about the change, and may require making application changes.
*/
INFO,
/**
* Resolving this issue is advised but not required to upgrade. There may be undesired changes in behavior unless this issue is
* resolved before upgrading.
*/
WARNING,
/**
* This issue must be resolved to upgrade. Failures will occur unless this is resolved before upgrading.
*/
CRITICAL
;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
import org.elasticsearch.cluster.metadata.MetaData;
import org.elasticsearch.xpack.core.deprecation.DeprecationIssue;

/**
* Cluster-level deprecation checks.
*/
public class ClusterDeprecationChecks {

static DeprecationIssue checkShardLimit(ClusterState state) {
Expand Down