Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ANTLR Version Mismatch #8980

Closed
jas32096 opened this issue Apr 5, 2022 · 2 comments
Closed

ANTLR Version Mismatch #8980

jas32096 opened this issue Apr 5, 2022 · 2 comments
Assignees
Labels
bug streaming-engine Tickets owned by the ksqlDB Streaming Team

Comments

@jas32096
Copy link

jas32096 commented Apr 5, 2022

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
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 jnh5y added the streaming-engine Tickets owned by the ksqlDB Streaming Team label Apr 7, 2022
@jnh5y
Copy link
Member

jnh5y commented Apr 12, 2022

There is a separate PR here for fixing this in 7.1.x: https://github.com/confluentinc/ksql/pull/8783/files. The issue was found "too late" in testing for 7.1.x to justify fixing things to avoid this warning. (That is, the risk was judged to too high.)

@jnh5y jnh5y self-assigned this Apr 12, 2022
@jnh5y
Copy link
Member

jnh5y commented Apr 12, 2022

A fix for 7.1.x has been merged here: #8783

@jnh5y jnh5y closed this as completed Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug streaming-engine Tickets owned by the ksqlDB Streaming Team
Projects
None yet
Development

No branches or pull requests

3 participants