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

Fix: patch Puma around a JRuby ARM64 bug #13447

Merged
merged 5 commits into from
Nov 25, 2021
Merged

Conversation

kares
Copy link
Contributor

@kares kares commented Nov 24, 2021

Here we're emulating the fallback logic just like it would happen on JRuby < 9.2.18.0.

The only consequence with the dummy closed_socket? implementation seems to be stopping a request early.

Please note that the closed_socket? implementation was slightly different on Puma 4.x, however under JRuby, 4.x always uses the dummy fallback due the RUBY_PLATFORM =~ /linux/ check (RUBY_PLATFORM returns "java" on JRuby).

Release notes

[rn:skip]

What does this PR do?

Patches around an upstream (JNR) bug which surfaces under ARM64.

Why is it important/What is the impact to the user?

Usable AARCH64 support (under Docker).

Author's Checklist

  • confirm with ARM64 CI (Docker) tests

Related issues

@kares kares marked this pull request as draft November 24, 2021 11:39
@kares
Copy link
Contributor Author

kares commented Nov 24, 2021

🟢 d03426a (AARCH64) 🟢 d03426a (AMD64) had 1 unrelated intermittent failure with ubi8

@kares
Copy link
Contributor Author

kares commented Nov 24, 2021

🟢 905916a (AARCH64) 🟢 905916a (AMD64) except 1 intermittent failure with oss

@kares kares changed the title Fix: PATCH Puma around a JRuby ARM64 bug Fix: patch Puma around a JRuby ARM64 bug Nov 24, 2021
@kares
Copy link
Contributor Author

kares commented Nov 25, 2021

the issue is present and surfaces on centos base image (not just the ubuntu 20:04 as detected initially)

🔴 f38f797 (AARCH64) 🟢 f38f797 (AMD64) except 1 intermittent failure with oss

AARCH64 full failure output

@kares kares marked this pull request as ready for review November 25, 2021 07:23
@kares
Copy link
Contributor Author

kares commented Nov 25, 2021

🟢 b0184a1 (AARCH64) 🟢 b0184a1 (AMD64)

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
@kares kares merged commit 32690cb into elastic:main Nov 25, 2021
kares added a commit to kares/logstash that referenced this pull request Nov 25, 2021
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
(cherry picked from commit 32690cb)
@kares kares added the v8.0.0 label Nov 25, 2021
kares added a commit to kares/logstash that referenced this pull request Nov 25, 2021
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
(cherry picked from commit 32690cb)
@kares kares added the v7.16.0 label Nov 25, 2021
kares added a commit that referenced this pull request Nov 30, 2021
…13453)

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
(cherry picked from commit 32690cb)
kares added a commit that referenced this pull request Dec 1, 2021
…13454)

Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
(cherry picked from commit 32690cb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants