Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

prevents drain from failing when object is empty #47

Merged
merged 1 commit into from
Mar 10, 2021

Conversation

lhelm-r7
Copy link
Contributor

Description

This is a fix for a failed drain on an ASG because it was throwing an error during the in-recovery? method when there are no values present. For more information about this elasticsearch cat API called here - cat recovery.

Testing

To test this locally..

  1. added a test ASG with one instance to escqendpointforensicsmaster
  2. made sure the cluster was healthy
  3. cd elasticsearch-drain/bin and run command ruby drain asg --asg=TEST_ASG_NAME --region=REGION

@eheaney-r7 eheaney-r7 merged commit 29ca002 into master Mar 10, 2021
@rvanburen-r7 rvanburen-r7 deleted the PD-28725-fix-in-recovery-method branch March 11, 2021 14:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants