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

Remove Blocking on GENERIC Pool in GET Snapshots #69101

Merged
merged 2 commits into from Feb 17, 2021

Conversation

original-brownbear
Copy link
Member

@original-brownbear original-brownbear commented Feb 17, 2021

This aligns the way get snapshots works in 7.x with how it works
in master exactly (except for masters ability to load snapshots across repos)
and thus fixes the deadlock in #69099.

No need to review the logic in detail here, it's the exact same logic as in master now so it probably rather makes sense comparing with master than looking at this in isolation.

Closes #69099

This aligns the way get snapshots works in `7.x` with how it works
in `master` exactly (except for masters ability to load snapshots across repos)
and thus fixes the deadlock in elastic#69099.

Closes elastic#69099
@original-brownbear original-brownbear added >bug :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs v7.12.0 v7.11.2 labels Feb 17, 2021
@elasticmachine elasticmachine added the Team:Distributed Meta label for distributed team label Feb 17, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

@original-brownbear
Copy link
Member Author

Jenkins run elasticsearch-ci/1 (snapshot test failure but unrelated and known to the features team)

Copy link
Contributor

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

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

LGTM

I opened #69108 to remind us to do something better with the new response format in 8.0 when we can.

@@ -170,16 +181,17 @@ protected void masterOperation(final GetSnapshotsRequest request, final ClusterS
* if false, they will throw an error
* @return list of snapshots
*/
private List<SnapshotInfo> snapshots(@Nullable SnapshotsInProgress snapshotsInProgress, String repositoryName,
private List<SnapshotInfo> snapshots(SnapshotsInProgress snapshotsInProgress, String repositoryName,
List<SnapshotId> snapshotIds, boolean ignoreUnavailable) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: spurious whitespace deviation from master :)

Suggested change
List<SnapshotId> snapshotIds, boolean ignoreUnavailable) {
List<SnapshotId> snapshotIds, boolean ignoreUnavailable) {

Copy link
Member Author

Choose a reason for hiding this comment

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

The version here is actually nicer/more correct :D that's why I deviated. I'd rather fix this in master next time a change to the file is made there :)

@original-brownbear
Copy link
Member Author

Thanks David!

@original-brownbear original-brownbear merged commit 27b60e5 into elastic:7.x Feb 17, 2021
original-brownbear added a commit to original-brownbear/elasticsearch that referenced this pull request Feb 17, 2021
This aligns the way get snapshots works in `7.x` with how it works
in `master` exactly (except for masters ability to load snapshots across repos)
and thus fixes the deadlock in elastic#69099.

Closes elastic#69099
original-brownbear added a commit that referenced this pull request Feb 17, 2021
This aligns the way get snapshots works in `7.x` with how it works
in `master` exactly (except for masters ability to load snapshots across repos)
and thus fixes the deadlock in #69099.

Closes #69099
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs Team:Distributed Meta label for distributed team v7.11.2 v7.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants