Uh oh!
There was an error while loading. Please reload this page.
branch-4.1: [fix](http) Fix jetty_server_max_http_header_size not applied in Jetty 12 (#61197) - #61904
Conversation
…y 12 (apache#61197) HTTP 431 "Request Header Fields Too Large" error occurs when sending requests with large headers (>8KB) to FE, even though `jetty_server_max_http_header_size` is configured to 10MB. This issue appears in cloud-4.1.2 (Jetty 12 + Spring Boot 3) but not in cloud-4.0.10 (Jetty 9 + Spring Boot 2). In Jetty 12 with Spring Boot 3, the `server.max-http-header-size` property does not automatically apply to custom `HttpConfiguration` objects created in `WebServerFactoryCustomizer`. The default 8KB limit remains in effect. Explicitly set `requestHeaderSize` on all server connectors in `WebServerFactoryCustomizerConfig` by adding a server customizer that configures the `HttpConfiguration` for each connector. - Added regression test `test_large_http_header.groovy` that verifies 100KB headers are accepted - Verified before fix: HTTP 431 error with large headers - Verified after fix: HTTP 200 success with large headers
Thearas
commented
Mar 30, 2026
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
There was a problem hiding this comment.
Pull request overview
This PR backports a fix to ensure the FE’s jetty_server_max_http_header_size configuration is actually applied when running on Jetty 12, and adds a regression test to validate large request headers are accepted.
Changes:
- Customize the embedded Jetty server to apply
Config.jetty_server_max_http_header_sizeto connector HTTP configurations. - Add an HTTP regression test that sends a ~100KB request header to
/api/healthand checks for absence of HTTP 431.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| regression-test/suites/http_p0/test_large_http_header.groovy | Adds a regression test exercising large request headers against FE health endpoint. |
| fe/fe-core/src/main/java/org/apache/doris/httpv2/config/WebServerFactoryCustomizerConfig.java | Applies configured request header size to Jetty connector HTTP configuration(s). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
liaoxin01
commented
Mar 30, 2026
run buildall |
hello-stephen
commented
Mar 30, 2026
FE UT Coverage ReportIncrement line coverage |
Uh oh!
There was an error while loading. Please reload this page.
Pick #61197