Skip to content

Conversation

@DaveCTurner
Copy link
Contributor

We must reset the thread-local buffer in DeflateCompressor whether the
compression succeeds or fails.

Closes #87160

We must reset the thread-local buffer in `DeflateCompressor` whether the compression succeeds or fails. Closes elastic#87160
@DaveCTurner DaveCTurner marked this pull request as ready for review May 26, 2022 13:34
@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label May 26, 2022
@elasticmachine
Copy link
Collaborator

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

@elasticsearchmachine
Copy link
Collaborator

Hi @DaveCTurner, I've created a changelog YAML for you.

Comment on lines +392 to +396
try {
compressor.uncompress(compressed);
} catch (ZipException e) {
// ok
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this fail if exception was not thrown?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, there's no checksum or anything so modifying a byte will sometimes yield a valid (but different) output.

@DaveCTurner DaveCTurner merged commit 66e3e8d into elastic:master May 30, 2022
@DaveCTurner DaveCTurner deleted the 2022-05-26-DeflateCompressor-cleanup branch May 30, 2022 16:34
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request May 30, 2022
We must reset the thread-local buffer in `DeflateCompressor` whether the compression succeeds or fails. Closes elastic#87160
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request May 30, 2022
We must reset the thread-local buffer in `DeflateCompressor` whether the compression succeeds or fails. Closes elastic#87160
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
7.17 Commit could not be cherrypicked due to conflicts
8.2
8.3

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 87163

DaveCTurner added a commit that referenced this pull request May 30, 2022
We must reset the thread-local buffer in `DeflateCompressor` whether the compression succeeds or fails. Closes #87160
elasticsearchmachine pushed a commit that referenced this pull request May 30, 2022
We must reset the thread-local buffer in `DeflateCompressor` whether the compression succeeds or fails. Closes #87160
elasticsearchmachine pushed a commit that referenced this pull request May 30, 2022
We must reset the thread-local buffer in `DeflateCompressor` whether the compression succeeds or fails. Closes #87160
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :Core/Infra/Core Core issues without another label Team:Core/Infra Meta label for core/infra team v7.17.5 v8.2.3 v8.3.1 v8.4.0

4 participants