Closed ThiyagarajanManivannan closed 9 months ago
Can you detail what do you mean by "intermittently"?
I ask because for a single Jetty setup, either the PreEncodedHttpField
s have all been discovered, or not, so your responses should all pass or all fail, not "intermittently".
Are you reloading the server between requests? Making requests to different Jetty, possibly configured differently?
@sbordet Intermittently states that this issue happens some execution run in "Continuous Integration and deployment" staging job. When this happens all test fails. Below is the HTTP response received and not reloading the jetty server between requests.
When we re-triggered the failed job then all times it get failed with the same hpack exception. It looks error occurs during the build and deployment time for specific execution, what cause this issue?
HTTP2_RESPONSE
version : h2_prior_knowledge, HEADER: { content-type : text/plain, date : Tue, 10 May 2022 18:52:18 GMT, server : envoy, vary : Accept-Encoding }, statusCode : 503, message : , body : upstream connect error or disconnect/reset before headers. reset reason: connection termination
IIUC, you start a job on your CI, and all the tests fail with that error. If that's the case, then you don't have setup Jetty in the correct way, likely you lack the HTTP/2 libraries like reported in #2048.
In particular you probably lack the http2-hpack
artifact, which is typically resolved as a transitive dependency.
In your case, you seem to get the error during the write of a response on the server, so you have to make sure that the http2-server
artifact is available (which in turn depends on the http2-hpack
artifact).
Jetty 9.x is now at End of Community Support.
This issue has been automatically marked as stale because it has been a full year without activity. It will be closed if no further activity occurs. Thank you for your contributions.
We get below exception some time http2 server response to client, we use the pax-jetty version: 9.4.46.v20220331
HTTP/2 connection terminated with client after this exception
Same problem stated in this Issue #2048 · eclipse/jetty.project is fixed in jetty version 9.4.x, though fix is already available in below jetty version
Used version in our system: karaf version: 4.3.7 Jetty version: 9.4.46
This happens intermittently, what could be the reason for this exception ?