OpenMetadata/docker
Sriharsha Chintalapani 2c8a45d2a8
Upgrade to Dropwizard 5x and Jetty 12.1 (#24776)
* Add support for Dropwizard 5.0 and Jetty 12.1.x

* Dropwizard 5x and Jetty 12.1 upgrade

* Fix test behavior

* Fix rdf tests

* revert enableVirtualThreads

* fix tests

* Fix Tests

* Fix tests

* Switch to jersey-jetty-connector for Jetty 12 compatibility

- Replace jersey-apache-connector with jersey-jetty-connector
- Jersey 3.1.4+ jersey-jetty-connector supports Jetty 12.0.x+
- Use JettyConnectorProvider and JettyHttpClientSupplier for HTTP client
- Keep reasonable timeouts (30s connect, 2min read) to prevent CI hangs
- Set SYNC_LISTENER_RESPONSE_MAX_SIZE for large responses

This fixes the 1,093 InterruptedException test failures caused by
using the default Jersey client (HttpURLConnection-based) which doesn't
handle concurrent test execution properly.

* Fix: Start Jetty HttpClient before use

Jetty 12 HttpClient implements LifeCycle and must be explicitly
started with httpClient.start() before use. This fixes the 163
InterruptedException test failures.

* Fix: Force jetty-client to 12.1.1 for jersey-jetty-connector

jersey-jetty-connector brings transitive jetty-client:12.0.22 but
Dropwizard 5.0 uses Jetty 12.1.1. The ClientConnector.newTransport()
API changed between 12.0.x and 12.1.x, causing NoSuchMethodError.

Fix: Exclude transitive jetty-client and add explicit 12.1.x dependency.

* Use Java 11+ HttpClient connector for tests (jersey-jnh-connector)

Switch from the broken jersey-jetty-connector (incompatible with Jetty 12.1.x)
to jersey-jnh-connector which uses Java's built-in java.net.http.HttpClient.
This connector:
- Natively supports all HTTP methods including PATCH
- Works with Java 21
- No external dependencies required
- Avoids compatibility issues with Jetty versions

* Use Apache HttpClient 5.x connector for tests (jersey-apache5-connector)

Switch from jersey-jetty-connector (incompatible with Jetty 12.1.x)
to jersey-apache5-connector which uses Apache HttpClient 5.x.
This connector:
- Supports all HTTP methods including PATCH
- Lenient with empty PUT request bodies
- Has proper timeout support to prevent indefinite hangs
- Works with Jetty 12.1.x

* Fix  tests

* Fix  docker compose

* Fix tests

* Fix tests - make url compatible

* Add URL parsing

* Fix URL decode

* fix tests

* fix test

* fix tests

* Fix integration with new dropwizard-5x changes

---------

Co-authored-by: Karan Hotchandani <33024356+karanh37@users.noreply.github.com>
Co-authored-by: karanh37 <karanh37@gmail.com>
Co-authored-by: Mohit Yadav <105265192+mohityadav766@users.noreply.github.com>
2026-01-12 12:18:29 -08:00
..
development Upgrade to Dropwizard 5x and Jetty 12.1 (#24776) 2026-01-12 12:18:29 -08:00
docker-compose-ingestion preparing 1.12 branch (#24870) 2025-12-17 18:36:03 +05:30
docker-compose-openmetadata preparing 1.12 branch (#24870) 2025-12-17 18:36:03 +05:30
docker-compose-quickstart preparing 1.12 branch (#24870) 2025-12-17 18:36:03 +05:30
images/minimal-ubuntu Fix java 21 in docker (#21746) 2025-06-12 18:24:25 -07:00
mysql Pluggable API/Features Limits (#16782) 2024-07-01 14:59:25 +05:30
postgresql Fix #8208: OpenMetadata server supports Postgres 15 (#12370) 2023-08-02 11:13:28 +05:30
rdf-store fix #21555: Automator - Separating terms and tags in action config (#22970) 2025-08-28 10:50:48 +02:00
openmetadata-start.sh MINOR - Pydantic V2 warnings and better exception msg (#16916) 2024-07-04 14:54:41 +02:00
openmetadata.yaml Updating docker env and symbolic link for openmetadata.yaml (#12684) 2023-08-01 11:07:29 +05:30
run_local_docker.sh MINOR: Add option to disable ingestion in run_local_docker (#24676) 2025-12-03 12:35:29 +00:00
run_local_docker_rdf.sh RDF Ontology, Json LD, DCAT vocabulary support by mapping OM Schemas to RDF (#22852) 2025-08-17 18:36:26 -07:00
validate_compose.py Fix #23096: Add Airflow 3.x support (#24338) 2025-11-21 12:28:28 +01:00