Skip to content

Commit

Permalink
Add retry count and is retryable to ILM explain (#4391)
Browse files Browse the repository at this point in the history
Relates: #4341, elastic/elasticsearch#48256

This commit adds FailedStepRetryCount and IsAutoRetryableError
properties to ILM explain, applicable if a step fails.

(cherry picked from commit 4dc0e83)
  • Loading branch information
russcam committed Feb 23, 2020
1 parent 92c9e6b commit ef82093
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Nest/XPack/Ilm/ExplainLifecycle/ExplainLifecycleResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,25 @@ public class LifecycleExplain
[JsonFormatter(typeof(DateTimeOffsetEpochMillisecondsFormatter))]
public DateTimeOffset ActionTime { get; internal set; }

/// <summary>
/// Indicates if retrying a failed step can overcome the error.
/// If this is true, the failed step will be retried automatically.
/// </summary>
[DataMember(Name = "is_auto_retryable_error")]
public bool? IsAutoRetryableError { get; internal set; }

/// <summary>
/// The step that caused the error, if applicable.
/// </summary>
[DataMember(Name = "failed_step")]
public string FailedStep { get; internal set; }

/// <summary>
/// Number of attempted automatic retries to execute the failed step, if applicable.
/// </summary>
[DataMember(Name = "failed_step_retry_count")]
public int? FailedStepRetryCount { get; internal set; }

[DataMember(Name = "index")]
public IndexName Index { get; internal set; }

Expand Down

0 comments on commit ef82093

Please sign in to comment.