Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up snapshots where possible after each REST test #20489

Merged
merged 1 commit into from
Sep 15, 2016

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Sep 14, 2016

The only repository we can be sure is safe to clean is fs so we clean
any snapshots in those repositories after each test. Other repositories
like url and azure tend to throw exceptions rather than let us fetch
their contents during the REST test. So we clean what we can....

Closes #18159

@nik9000 nik9000 added >test Issues or PRs that are addressing/adding tests review v5.0.0 labels Sep 14, 2016
@dakrone
Copy link
Member

dakrone commented Sep 14, 2016

LGTM

}
logger.debug("wiping snapshot repository [{}]", repoName);
adminClient().performRequest("DELETE", "_snapshot/" + repoName);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @nik9000 ! @elastic/es-clients is this ok? I guess all the client runners will have to be changed accordingly.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think they'll start failing without this right away, but they should probably pick it up eventually. I'll wait to merge this until we get a response.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine with me :) I'm already wiping the repository itself after each test, so this shouldn't have much effect (I don't think).

The only repository we can be sure is safe to clean is `fs` so we clean
any snapshots in those repositories after each test. Other repositories
like url and azure tend to throw exceptions rather than let us fetch
their contents during the REST test. So we clean what we can....

Closes elastic#18159
@nik9000
Copy link
Member Author

nik9000 commented Sep 15, 2016

OK - given one note from someone on the es-clients I've merged this.

Master: d0be96d
5.x: 7218103
5.0: 274085e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>test Issues or PRs that are addressing/adding tests v5.0.0-beta1 v6.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants