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

Make RestResponse releasable #104752

Merged

Conversation

DaveCTurner
Copy link
Contributor

On reflection is was probably a mistake to give each
ChunkedRestResponseBody a nontrivial lifecycle in #99871. The
lifecycle really belongs to the whole containing RestResponse. This
commit moves it there.

On reflection is was probably a mistake to give each
`ChunkedRestResponseBody` a nontrivial lifecycle in elastic#99871. The
lifecycle really belongs to the whole containing `RestResponse`. This
commit moves it there.
@DaveCTurner DaveCTurner added >non-issue :Distributed Coordination/Network Http and internode communication implementations v8.13.0 labels Jan 25, 2024
@elasticsearchmachine elasticsearchmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label Jan 25, 2024
@elasticsearchmachine
Copy link
Collaborator

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

@arteam arteam self-requested a review January 25, 2024 14:44
Copy link
Contributor

@arteam arteam left a comment

Choose a reason for hiding this comment

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

lgtm

@DaveCTurner DaveCTurner merged commit 03c9f89 into elastic:main Jan 25, 2024
15 checks passed
@DaveCTurner DaveCTurner deleted the 2024/01/25/RestResponse-releasable branch January 25, 2024 17:00
@DaveCTurner
Copy link
Contributor Author

Thanks @arteam!

DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Jan 27, 2024
Related to elastic#104752, we should not be confounding the lifecycle of the
`EncodedLengthTrackingChunkedRestResponseBody` with the lifecycle of the
overall `RestResponse`. This commit introduces a separate object to
record the total response length whose lifecycle is independent of that
of the response body.
elasticsearchmachine pushed a commit that referenced this pull request Jan 29, 2024
Related to #104752, we should not be confounding the lifecycle of the
`EncodedLengthTrackingChunkedRestResponseBody` with the lifecycle of the
overall `RestResponse`. This commit introduces a separate object to
record the total response length whose lifecycle is independent of that
of the response body.
@DaveCTurner
Copy link
Contributor Author

FWIW this was opened to prepare things for #104851.

@DaveCTurner DaveCTurner restored the 2024/01/25/RestResponse-releasable branch June 17, 2024 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Coordination/Network Http and internode communication implementations >non-issue Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. v8.13.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants