Skip to content

Conversation

@prdoyle
Copy link
Contributor

@prdoyle prdoyle commented May 26, 2025

Changing Text to use ByteBuffer instead of BytesReference had unintended consequences because ByteBuffer is a mutable, stateful object, where BytesReference is not. Using the ByteBuffer (for example, by converting it to a String) "consumes" the buffer's contents and leaves it appearing to be empty.

It's urgent to fix this because it's possible this bug could cause data to quietly disappear.

Reverts #128316 and #127666.

@prdoyle prdoyle self-assigned this May 26, 2025
@prdoyle prdoyle requested a review from a team as a code owner May 26, 2025 17:30
@prdoyle prdoyle added >non-issue :Core/Infra/Core Core issues without another label auto-backport Automatically create backport pull requests when merged v8.19.0 v9.1.0 labels May 26, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Core/Infra Meta label for core/infra team label May 26, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@prdoyle
Copy link
Contributor Author

prdoyle commented May 26, 2025

Superseded by #128483

@prdoyle prdoyle closed this May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged :Core/Infra/Core Core issues without another label >non-issue Team:Core/Infra Meta label for core/infra team v8.19.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants