Skip to content

Rename to ChunkedRestResponseBodyPart#109057

Merged
elasticsearchmachine merged 4 commits intoelastic:mainfrom
DaveCTurner:2024/05/27/rename-chunked-body
May 27, 2024
Merged

Rename to ChunkedRestResponseBodyPart#109057
elasticsearchmachine merged 4 commits intoelastic:mainfrom
DaveCTurner:2024/05/27/rename-chunked-body

Conversation

@DaveCTurner
Copy link
Copy Markdown
Member

Follow-up to #104851 to rename some symbols to reflect that the class
formerly known as a ChunkedRestResponseBody may now only be part of
the whole response body.

Follow-up to elastic#104851 to rename some symbols to reflect that the class
formerly known as a `ChunkedRestResponseBody` may now only be _part_ of
the whole response body.
@DaveCTurner DaveCTurner added >non-issue :Distributed/Network Http and internode communication implementations v8.15.0 labels May 27, 2024
@elasticsearchmachine elasticsearchmachine added the Team:Distributed Meta label for distributed team. label May 27, 2024
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

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

Copy link
Copy Markdown
Member Author

@DaveCTurner DaveCTurner left a comment

Choose a reason for hiding this comment

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

Apart from rewording some of the javadocs a little and the two added assertions (noted below) this was all mechanical.

while (firstBodyPart.isPartComplete() == false) {
refsGenerated.add(firstBodyPart.encodeChunk(randomIntBetween(2, 10), BytesRefRecycler.NON_RECYCLING_INSTANCE));
}
assertTrue(firstBodyPart.isLastPart());
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Added this assertion

while (firstBodyPart.isPartComplete() == false) {
refsGenerated.add(firstBodyPart.encodeChunk(randomIntBetween(2, 10), BytesRefRecycler.NON_RECYCLING_INSTANCE));
}
assertTrue(firstBodyPart.isLastPart());
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Added this assertion

Copy link
Copy Markdown
Contributor

@henningandersen henningandersen 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 added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label May 27, 2024
@elasticsearchmachine elasticsearchmachine merged commit f5e6f2a into elastic:main May 27, 2024
@DaveCTurner DaveCTurner deleted the 2024/05/27/rename-chunked-body branch May 27, 2024 11:26
@DaveCTurner DaveCTurner restored the 2024/05/27/rename-chunked-body branch June 17, 2024 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Distributed/Network Http and internode communication implementations >non-issue Team:Distributed Meta label for distributed team. v8.15.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants