kafka icon indicating copy to clipboard operation
kafka copied to clipboard

[WIP] KAFKA-18279: add JDK 11 check and test for clients and streams module

Open Rancho-7 opened this issue 10 months ago • 4 comments

jira: https://issues.apache.org/jira/browse/KAFKA-18279

see discussion: https://github.com/apache/kafka/pull/17861#issuecomment-2547515965

This PR will add a post-commit job to trunk branch - it should run check and test for clients and streams module under JDK 11.

Rancho-7 avatar Mar 13 '25 03:03 Rancho-7

I found that our current test flow doesn't work with JDK 11 for the clients and streams modules. So I created a new test flow to handle this.

Here's what the output looks like: 0313

Rancho-7 avatar Mar 13 '25 03:03 Rancho-7

I am getting this error while testing due to the -Werror flag in build.gradle,and I am working on fixing it.

> Task :streams:compileJava
/home/runner/work/kafka/kafka/streams/src/main/java/org/apache/kafka/streams/Topology.java:318: warning: [overloads] <K#1,V#1>addSource(AutoOffsetReset,String,Deserializer<K#1>,Deserializer<V#1>,String...) in Topology is potentially ambiguous with <K#2,V#2>addSource(AutoOffsetReset,String,TimestampExtractor,Deserializer<K#2>,Deserializer<V#2>,String...) in Topology
    public synchronized <K, V> Topology addSource(final AutoOffsetReset offsetReset,
                                        ^
  where K#1,V#1,K#2,V#2 are type-variables:
    K#1 extends Object declared in method <K#1,V#1>addSource(AutoOffsetReset,String,Deserializer<K#1>,Deserializer<V#1>,String...)
    V#1 extends Object declared in method <K#1,V#1>addSource(AutoOffsetReset,String,Deserializer<K#1>,Deserializer<V#1>,String...)
    K#2 extends Object declared in method <K#2,V#2>addSource(AutoOffsetReset,String,TimestampExtractor,Deserializer<K#2>,Deserializer<V#2>,String...)
    V#2 extends Object declared in method <K#2,V#2>addSource(AutoOffsetReset,String,TimestampExtractor,Deserializer<K#2>,Deserializer<V#2>,String...)
/home/runner/work/kafka/kafka/streams/src/main/java/org/apache/kafka/streams/Topology.java:330: warning: [overloads] <K#1,V#1>addSource(AutoOffsetReset,String,Deserializer<K#1>,Deserializer<V#1>,String...) in Topology is potentially ambiguous with <K#2,V#2>addSource(AutoOffsetReset,String,TimestampExtractor,Deserializer<K#2>,Deserializer<V#2>,String...) in Topology
    public synchronized <K, V> Topology addSource(final org.apache.kafka.streams.AutoOffsetReset offsetReset,
                                        ^
  where K#1,V#1,K#2,V#2 are type-variables:
    K#1 extends Object declared in method <K#1,V#1>addSource(AutoOffsetReset,String,Deserializer<K#1>,Deserializer<V#1>,String...)
    V#1 extends Object declared in method <K#1,V#1>addSource(AutoOffsetReset,String,Deserializer<K#1>,Deserializer<V#1>,String...)
    K#2 extends Object declared in method <K#2,V#2>addSource(AutoOffsetReset,String,TimestampExtractor,Deserializer<K#2>,Deserializer<V#2>,String...)
    V#2 extends Object declared in method <K#2,V#2>addSource(AutoOffsetReset,String,TimestampExtractor,Deserializer<K#2>,Deserializer<V#2>,String...)
error: warnings found and -Werror specified
1 error
2 warnings

> Task :streams:compileJava FAILED

Rancho-7 avatar Mar 13 '25 03:03 Rancho-7

A label of 'needs-attention' was automatically added to this PR in order to raise the attention of the committers. Once this issue has been triaged, the triage label should be removed to prevent this automation from happening again.

github-actions[bot] avatar Mar 20 '25 03:03 github-actions[bot]

This PR is being marked as stale since it has not had any activity in 90 days. If you would like to keep this PR alive, please leave a comment asking for a review. If the PR has merge conflicts, update it with the latest from the base branch.

If you are having difficulty finding a reviewer, please reach out on the [mailing list](https://kafka.apache.org/contact).

If this PR is no longer valid or desired, please feel free to close it. If no activity occurs in the next 30 days, it will be automatically closed.

github-actions[bot] avatar Jun 19 '25 03:06 github-actions[bot]

This PR has been closed since it has not had any activity in 120 days. If you feel like this was a mistake, or you would like to continue working on it, please feel free to re-open the PR and ask for a review.

github-actions[bot] avatar Jul 19 '25 03:07 github-actions[bot]