Skip to content

Conversation

@original-brownbear
Copy link
Contributor

Just a suggestion, but IMO this is much simpler and makes enables some drier solutions for the cache file math down the line:

Using Tuple all over is somewhat read to read and forces us to duplicate
a lot of assertions. Using a custom class dries up the assertions and makes
the code easier to follow by adding utilities for some common region math spots.

Using `Tuple` all over is somewhat read to read and forces us to duplicate
a lot of assertions. Using a custom class dries up the assertions and makes
the code easier to follow by adding utilities for some common region math spots.
@elasticmachine elasticmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label Feb 8, 2021
@elasticmachine
Copy link
Collaborator

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

Copy link
Member

@tlrx tlrx left a comment

Choose a reason for hiding this comment

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

LGTM

@original-brownbear
Copy link
Contributor Author

Thanks Tanguy!

@original-brownbear original-brownbear merged commit b29fe24 into elastic:master Feb 8, 2021
@original-brownbear original-brownbear deleted the bytes-range branch February 8, 2021 15:09
original-brownbear added a commit to original-brownbear/elasticsearch that referenced this pull request Feb 8, 2021
…68662)

Using `Tuple` all over is somewhat read to read and forces us to duplicate
a lot of assertions. Using a custom class dries up the assertions and makes
the code easier to follow by adding utilities for some common region math spots.
original-brownbear added a commit that referenced this pull request Feb 8, 2021
…68709)

Using `Tuple` all over is somewhat read to read and forces us to duplicate
a lot of assertions. Using a custom class dries up the assertions and makes
the code easier to follow by adding utilities for some common region math spots.
@original-brownbear original-brownbear restored the bytes-range branch April 18, 2023 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed Coordination/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs >non-issue Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. v7.12.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants