[ 
https://issues.apache.org/jira/browse/FLINK-41413?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Purushottam Sinha updated FLINK-41413:
--------------------------------------
    Description: 
*Problem*
* On the GitHub Actions ubuntu-26.04 runners (kernel {{7.0.0-1019-azure}}), 
{{mongo:8.0.32}} exits at startup. The {{mongodb8}} jobs fail, and fail-fast 
then cancels the rest of the matrix, so every PR shows red CI.
* MongoDB 9.0 went GA on 2026-09-28, but the connector isn't tested against it, 
and its driver (5.11.1) predates 9.0 support.

*Evidence*
* {{pom.xml}} pins {{<mongodb8.version>8.0.32</mongodb8.version>}} (line 58) 
and {{<mongodb.driver.version>5.11.1</mongodb.driver.version>}} (line 53). The 
{{.github/workflows/push_pr.yml}} matrix (line 31) only goes up to {{mongodb8}}.
* The container log says "MongoDB cannot start: Linux kernel versions 6.19 and 
newer has a known incompatibility" 
([SERVER-121912|https://jira.mongodb.org/browse/SERVER-121912], 
[SERVER-136848|https://jira.mongodb.org/browse/SERVER-136848]). The same 
failure shows up on 
[#72|https://github.com/apache/flink-connector-mongodb/pull/72] and 
[#79|https://github.com/apache/flink-connector-mongodb/pull/79].
* MongoDB fixed the kernel check for Ubuntu in 8.0.37, 8.3.16 and 9.0.4 
([SERVER-131779|https://jira.mongodb.org/browse/SERVER-131779]). MongoDB 9.0.0 
to 9.0.3 hit the same failure, and 9.0.2 is confirmed failing in SERVER-136848.
* MongoDB released 8.0.37 on 2026-10-30 and 8.0.38 on 2026-11-05 ([downloads 
index|https://downloads.mongodb.org/full.json]). The official {{mongo}} image 
on Docker Hub still tops out at 8.0.34, because 
[docker-library/mongo|https://github.com/docker-library/mongo/blob/master/versions.json]
 hasn't updated since 2026-10-14. Last time the delay was about 3 weeks: 8.0.34 
was released on 2026-09-24, and its image was published on 2026-10-13 
([docker-library/mongo#772|https://github.com/docker-library/mongo/issues/772]).
 The newest official 8.3 image, {{mongo:8.3.13}}, still has the old check, so 
moving to 8.3 doesn't help yet.
* Driver 5.14.0 adds "JAVA-6164 Bump maxWireVersion to 29 for MongoDB 9.0" 
([release 
notes|https://github.com/mongodb/mongo-java-driver/releases/tag/r5.14.0]).
* {{flink-sql-connector-mongodb/src/main/resources/META-INF/NOTICE}} still 
lists the driver as 5.1.1, but the jar has bundled 5.11.1 since FLINK-40713.

*Proposed fix*
* Once {{mongo:8.0.37}} (or a later 8.0.x) is on Docker Hub, raise 
{{mongodb8.version}} to that version.
* Bump {{mongodb-driver-sync}} from 5.11.1 to 5.14.0, and update the SQL 
connector NOTICE to match.
* Add a {{mongodb9}} profile pinned to 9.0.4 or later (never 9.0.0 to 9.0.3), 
and add it to the {{push_pr.yml}} matrix.
* Fallback, if the official image takes too long: MongoDB's own image already 
has the fixed version ({{mongodb/mongodb-community-server:8.0.37-ubuntu2204}}). 
Switching to it means changing {{MongoTestUtil}} to use that image with 
{{.asCompatibleSubstituteFor("mongo")}}, and re-checking {{MongoDBContainer}} 
and the sharded-cluster setup.

*Acceptance*
* Every job from {{mongodb4}} (4.4.30) to {{mongodb9}} in {{push_pr.yml}} 
passes on ubuntu-26.04 runners.
* The SQL jar NOTICE matches the bundled {{bson}}, {{mongodb-driver-core}} and 
{{mongodb-driver-sync}} versions.

  was:
*Problem*
On the GitHub Actions ubuntu-26.04 runners (kernel {{7.0.0-1019-azure}}), 
{{mongo:8.0.32}} exits at startup. The {{mongodb8}} jobs fail, and fail-fast 
then cancels the rest of the matrix, so every PR shows red CI.

*Evidence*
* {{pom.xml}} pins {{<mongodb8.version>8.0.32</mongodb8.version>}}.
* The container log says "MongoDB cannot start: Linux kernel versions 6.19 and 
newer has a known incompatibility" 
([SERVER-121912|https://jira.mongodb.org/browse/SERVER-121912], 
[SERVER-136848|https://jira.mongodb.org/browse/SERVER-136848]). The same 
failure shows up on 
[#72|https://github.com/apache/flink-connector-mongodb/pull/72] and 
[#79|https://github.com/apache/flink-connector-mongodb/pull/79].
* MongoDB 8.0.37 fixes the kernel check on Ubuntu 
([SERVER-131779|https://jira.mongodb.org/browse/SERVER-131779]). Docker Hub's 
newest 8.0 image is 8.0.34.

*Proposed fix*
* Once {{mongo:8.0.37}} (or a later 8.0.x) is on Docker Hub, raise 
{{mongodb8.version}} in {{pom.xml}} to that version.

*Acceptance*
* All {{mongodb8}} jobs in {{.github/workflows/push_pr.yml}} pass on 
ubuntu-26.04 runners.


        Summary: Connectors / MongoDB: Bump MongoDB 8.0 to 8.0.37, mongo-driver 
to 5.14.0, and add MongoDB 9.0  (was: Connectors / MongoDB: Bump 
mongodb8.version to 8.0.37+ so CI works on ubuntu-26.04)

> Connectors / MongoDB: Bump MongoDB 8.0 to 8.0.37, mongo-driver to 5.14.0, and 
> add MongoDB 9.0
> ---------------------------------------------------------------------------------------------
>
>                 Key: FLINK-41413
>                 URL: https://issues.apache.org/jira/browse/FLINK-41413
>             Project: Flink
>          Issue Type: Improvement
>          Components: Connectors / MongoDB
>            Reporter: Purushottam Sinha
>            Priority: Major
>
> *Problem*
> * On the GitHub Actions ubuntu-26.04 runners (kernel {{7.0.0-1019-azure}}), 
> {{mongo:8.0.32}} exits at startup. The {{mongodb8}} jobs fail, and fail-fast 
> then cancels the rest of the matrix, so every PR shows red CI.
> * MongoDB 9.0 went GA on 2026-09-28, but the connector isn't tested against 
> it, and its driver (5.11.1) predates 9.0 support.
> *Evidence*
> * {{pom.xml}} pins {{<mongodb8.version>8.0.32</mongodb8.version>}} (line 58) 
> and {{<mongodb.driver.version>5.11.1</mongodb.driver.version>}} (line 53). 
> The {{.github/workflows/push_pr.yml}} matrix (line 31) only goes up to 
> {{mongodb8}}.
> * The container log says "MongoDB cannot start: Linux kernel versions 6.19 
> and newer has a known incompatibility" 
> ([SERVER-121912|https://jira.mongodb.org/browse/SERVER-121912], 
> [SERVER-136848|https://jira.mongodb.org/browse/SERVER-136848]). The same 
> failure shows up on 
> [#72|https://github.com/apache/flink-connector-mongodb/pull/72] and 
> [#79|https://github.com/apache/flink-connector-mongodb/pull/79].
> * MongoDB fixed the kernel check for Ubuntu in 8.0.37, 8.3.16 and 9.0.4 
> ([SERVER-131779|https://jira.mongodb.org/browse/SERVER-131779]). MongoDB 
> 9.0.0 to 9.0.3 hit the same failure, and 9.0.2 is confirmed failing in 
> SERVER-136848.
> * MongoDB released 8.0.37 on 2026-10-30 and 8.0.38 on 2026-11-05 ([downloads 
> index|https://downloads.mongodb.org/full.json]). The official {{mongo}} image 
> on Docker Hub still tops out at 8.0.34, because 
> [docker-library/mongo|https://github.com/docker-library/mongo/blob/master/versions.json]
>  hasn't updated since 2026-10-14. Last time the delay was about 3 weeks: 
> 8.0.34 was released on 2026-09-24, and its image was published on 2026-10-13 
> ([docker-library/mongo#772|https://github.com/docker-library/mongo/issues/772]).
>  The newest official 8.3 image, {{mongo:8.3.13}}, still has the old check, so 
> moving to 8.3 doesn't help yet.
> * Driver 5.14.0 adds "JAVA-6164 Bump maxWireVersion to 29 for MongoDB 9.0" 
> ([release 
> notes|https://github.com/mongodb/mongo-java-driver/releases/tag/r5.14.0]).
> * {{flink-sql-connector-mongodb/src/main/resources/META-INF/NOTICE}} still 
> lists the driver as 5.1.1, but the jar has bundled 5.11.1 since FLINK-40713.
> *Proposed fix*
> * Once {{mongo:8.0.37}} (or a later 8.0.x) is on Docker Hub, raise 
> {{mongodb8.version}} to that version.
> * Bump {{mongodb-driver-sync}} from 5.11.1 to 5.14.0, and update the SQL 
> connector NOTICE to match.
> * Add a {{mongodb9}} profile pinned to 9.0.4 or later (never 9.0.0 to 9.0.3), 
> and add it to the {{push_pr.yml}} matrix.
> * Fallback, if the official image takes too long: MongoDB's own image already 
> has the fixed version 
> ({{mongodb/mongodb-community-server:8.0.37-ubuntu2204}}). Switching to it 
> means changing {{MongoTestUtil}} to use that image with 
> {{.asCompatibleSubstituteFor("mongo")}}, and re-checking {{MongoDBContainer}} 
> and the sharded-cluster setup.
> *Acceptance*
> * Every job from {{mongodb4}} (4.4.30) to {{mongodb9}} in {{push_pr.yml}} 
> passes on ubuntu-26.04 runners.
> * The SQL jar NOTICE matches the bundled {{bson}}, {{mongodb-driver-core}} 
> and {{mongodb-driver-sync}} versions.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to