Skip to content

Make RestResponse releasable#104752

Merged
DaveCTurner merged 1 commit intoelastic:mainfrom
DaveCTurner:2024/01/25/RestResponse-releasable
Jan 25, 2024
Merged

Make RestResponse releasable#104752
DaveCTurner merged 1 commit intoelastic:mainfrom
DaveCTurner:2024/01/25/RestResponse-releasable

Conversation

@DaveCTurner
Copy link
Copy Markdown
Member

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/Network Http and internode communication implementations v8.13.0 labels Jan 25, 2024
@elasticsearchmachine elasticsearchmachine added the Team:Distributed Meta label for distributed team. label Jan 25, 2024
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

@arteam arteam self-requested a review January 25, 2024 14:44
Copy link
Copy Markdown
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
@DaveCTurner DaveCTurner deleted the 2024/01/25/RestResponse-releasable branch January 25, 2024 17:00
@DaveCTurner
Copy link
Copy Markdown
Member 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
Copy Markdown
Member 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/Network Http and internode communication implementations >non-issue Team:Distributed Meta label for distributed team. v8.13.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants