Skip to content

Use Custom Class instead of Tuple for Cached Byte Positions (#68662)#68709

Merged
original-brownbear merged 1 commit intoelastic:7.xfrom
original-brownbear:68662-7.x
Feb 8, 2021
Merged

Use Custom Class instead of Tuple for Cached Byte Positions (#68662)#68709
original-brownbear merged 1 commit intoelastic:7.xfrom
original-brownbear:68662-7.x

Conversation

@original-brownbear
Copy link
Copy Markdown
Contributor

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.

backport of #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 original-brownbear added :Distributed/Snapshot/Restore Anything directly related to the `_snapshot/*` APIs backport labels Feb 8, 2021
@elasticmachine elasticmachine added the Team:Distributed Meta label for distributed team. label Feb 8, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

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

@original-brownbear original-brownbear merged commit 96970b2 into elastic:7.x Feb 8, 2021
@original-brownbear original-brownbear deleted the 68662-7.x branch February 8, 2021 21:12
original-brownbear added a commit that referenced this pull request Feb 9, 2021
This was caused by #68709 which turned the edge case of a
range with start > end into a tripped assertion.
original-brownbear added a commit that referenced this pull request Feb 9, 2021
This was caused by #68709 which turned the edge case of a
range with start > end into a tripped assertion.
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 Team:Distributed Meta label for distributed team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants