Skip to content

Simplify Shard Snapshot Upload Code (#48155)#48345

Merged
original-brownbear merged 1 commit intoelastic:7.xfrom
original-brownbear:48155-7.x
Oct 22, 2019
Merged

Simplify Shard Snapshot Upload Code (#48155)#48345
original-brownbear merged 1 commit intoelastic:7.xfrom
original-brownbear:48155-7.x

Conversation

@original-brownbear
Copy link
Copy Markdown
Contributor

The code here was needlessly complicated when it
enqueued all file uploads up-front. Instead, we can
go with a cleaner worker + queue pattern here by taking
the max-parallelism from the threadpool info.

Also, I slightly simplified the rethrow and
listener (step listener is pointless when you add the callback in the next line)
handling it since I noticed that we were needlessly rethrowing in the same
code and that wasn't worth a separate PR.

back port of #48155

The code here was needlessly complicated when it
enqueued all file uploads up-front. Instead, we can
go with a cleaner worker + queue pattern here by taking
the max-parallelism from the threadpool info.

Also, I slightly simplified the rethrow and
listener (step listener is pointless when you add the callback in the next line)
handling it since I noticed that we were needlessly rethrowing in the same
code and that wasn't worth a separate PR.
@original-brownbear original-brownbear added :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs backport labels Oct 22, 2019
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed (:Distributed/Snapshot/Restore)

@original-brownbear original-brownbear merged commit 8a02a5f into elastic:7.x Oct 22, 2019
@original-brownbear original-brownbear deleted the 48155-7.x branch October 22, 2019 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants