JDK 21 on x86_64 causes truncated responses with Feign + HttpClient (content compression related)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 42/100
Direzione di ricerca
Start by reproducing the Feign call on JDK 21 with x86_64 Linux and a gzip-compressed response, then compare it with Windows and with HttpClient content compression disabled. Fill in the Feign and HTTP client versions while isolating the decompression path; done means the response body is complete without requiring the workaround.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
After upgrading from JDK 17 to JDK 21, Feign client calls receive truncated response data when running on x86_64 Linux servers. The same code works correctly on Windows.
Expected Behavior
Feign should receive the complete response body regardless of the operating system or architecture.
Actual Behavior
- On Windows (dev machine): responses are complete, no truncation.
- On x86_64 Linux server (JDK 21): response data is truncated — the tail of the response body is missing.
Workaround
Calling httpClientBuilder.disableContentCompression() when building the HttpClient fixes the truncation issue on x86_64 servers. This suggests the problem is related to gzip / content-encoding decompression in combination with JDK 21 on x86_64.
Environment
- Feign version: (please fill in)
- bisheng JDK version: 21.0.11 (upgraded from 17)
- OS: Linux x86_64 (server) — affected
- OS: Windows (dev machine) — not affected
- HTTP client: (please fill in, e.g. Apache HttpClient / hc5)
Steps to Reproduce
- Set up a Feign client with JDK 21 on an x86_64 Linux server.
- Call an endpoint that returns a gzip-compressed response.
- Observe that the received response body is truncated.
- Add
.disableContentCompression()to the HttpClient builder. - Response is now complete.
Additional Context
The disableContentCompression workaround strongly indicates a JDK 21 regression in gzip/deflate decompression handling on x86_64 architecture, possibly interacting with the Feign HttpClient
- Lingua principale
- Java
- Stelle
- 9.8k
- Fork
- 2k
- Merge medio
- 13h 7m
- PR unite (30g)
- 37
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di OpenFeign/feign
-
DefaultAsyncClient never completes the returned future when Client throws ErrorForse già presa @hutiefang76 l’ha presa 9 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Response.charset ignores charset after another Content-Type parameterForse già presa @hutiefang76 l’ha presa 9 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
UriUtils ignores allowReservedCharacters=false when the input has no percent tripletForse già presa @hutiefang76 l’ha presa 9 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Java11 Http2Client loses response header value order and duplicate occurrencesForse già presa @hutiefang76 l’ha presa 8 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
-
Java11 Http2Client rejects documented zero connect and read timeoutsForse già presa @hutiefang76 l’ha presa 8 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di OpenFeign/feign
Issue simili
-
:Search Relevance/Vectors >test-failure needs:risk Team:Search Relevance
Difficoltà 2/5 1-3 ore Idoneità per principianti 61/100
elastic/elasticsearch#163668 · 3 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
agent:working bug follow-up lane:auto
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Sanne/incus-spawn#1765 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Mend: dependency security vulnerability untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 63/100
opensearch-project/data-prepper#7219 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
I maintainer di solito rispondono entro 1 giorno