Skip to content

Mysql-connector-java upgrade #15422

@mustajibmk

Description

@mustajibmk

I am working on upgrading mysql-connector-java to version 8.0.28 - PR. This is needed to resolve security vulnerabilities. I creating this issue to discuss the obstacles that I am facing during the process. Please let me know if this is not the right place.

With the upgrade the com.mysql.jdbc.NonRegisteringDriver#parseURL method used in org.apache.druid.utils.ConnectionUriUtils is no longer available. So, I have resorted to instantiating com.mysql.cj.conf.ConnectionUrlParser with the connection string and then used the "getProperties" method to fetch the properties. This method is still not a like-to-like replacement as we do not get the response back in the earlier format.

Is com.mysql.cj.conf.ConnectionUrlParser the right way to proceed or should I write a custom parser based on the logic previous used or is there something else I should look at? Appreciate your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions