confluentinc / ksql-images

KSQL platform docker images
Apache License 2.0
6 stars 21 forks source link

ANTLR Version Mismatch #87

Closed jas32096 closed 2 years ago

jas32096 commented 2 years ago

Cross posting this bug report here, at this might be the better place for it

https://github.com/confluentinc/ksql/issues/8980

Describe the bug After upgrading from confluentinc/cp-ksqldb-server:6.1.0 to confluentinc/cp-ksqldb-server:7.1.0 I've noticed warnings about ANTLR in the logs and after running SHOW CONNECTORS

ANTLR Tool version 4.7.1 used for code generation does not match the current runtime version 4.9.2
ANTLR Runtime version 4.7.1 used for parser compilation does not match the current runtime version 4.9.2

To Reproduce Steps to reproduce the behavior, include: We use Kubernetes for deployment with ArgoCD and a fork of the helm chart here.

  1. Update chart to use image tag 7.1.0
  2. Deploy
  3. ksql> show connectors;
    ANTLR Tool version 4.7.1 used for code generation does not match the current runtime version 4.9.2
    ANTLR Runtime version 4.7.1 used for parser compilation does not match the current runtime version 4.9.2
    ANTLR Tool version 4.7.1 used for code generation does not match the current runtime version 4.9.2
    ANTLR Runtime version 4.7.1 used for parser compilation does not match the current runtime version 4.9.2
    
    Connector Name | Type | Class | Status 
    ----------------------------------------
    ----------------------------------------
    ksql> 

    Expected behavior No warnings. ANTLR versions should match

Actual behaviour A clear and concise description of what actually happens, including: See above

Additional context Log example

[2022-04-05 21:23:46,591] INFO Adding function ComplexFunction for method public java.lang.Object io.confluent.ksql.function.UdfLoaderTest$ComplexUdf.foo(java.lang.String) (io.confluent.ksql.function.UdfLoader)
ANTLR Tool version 4.7.1 used for code generation does not match the current runtime version 4.9.2
ANTLR Runtime version 4.7.1 used for parser compilation does not match the current runtime version 4.9.2

This is a new image, so shouldn't be polluted with any changes we've made. This is a list off all the ANTLR JARs I found on the image. Only the bottom one is in the class path. I tried deleting it with rm, but that had no effect.

['./usr/share/doc/cp-ksqldb-server/licenses/LICENSE-antlr4-runtime-4.7.1.txt',
 './usr/share/java/confluent-security/connect/antlr-runtime-3.5.2.jar',
 './usr/share/java/confluent-security/connect/antlr4-4.9.2.jar',
 './usr/share/java/confluent-security/connect/antlr4-runtime-4.9.2.jar',
 './usr/share/java/confluent-security/kafka-rest/antlr-runtime-3.5.2.jar',
 './usr/share/java/confluent-security/kafka-rest/antlr4-4.9.2.jar',
 './usr/share/java/confluent-security/kafka-rest/antlr4-runtime-4.9.2.jar',
 './usr/share/java/confluent-security/ksql/antlr-runtime-3.5.2.jar',
 './usr/share/java/confluent-security/ksql/antlr4-4.9.2.jar',
 './usr/share/java/confluent-security/ksql/antlr4-runtime-4.9.2.jar',
 './usr/share/java/confluent-security/schema-registry/antlr-runtime-3.5.2.jar',
 './usr/share/java/confluent-security/schema-registry/antlr4-4.9.2.jar',
 './usr/share/java/confluent-security/schema-registry/antlr4-runtime-4.9.2.jar',
 './usr/share/java/ksqldb-server/antlr4-runtime-4.7.1.jar']
jnh5y commented 2 years ago

Let's track / discuss this issue over at https://github.com/confluentinc/ksql/issues/8980 instead of on this repo.

The issue was found too late in the release process to upgrade safely. This will be fixed in CP 7.1.1 and later.