Skip to content

ClassNotFoundException for CLASS BASED sharding algorithm in Quarkus framework #35552

@zhfeng

Description

@zhfeng

Bug Report

For English only, other languages will not accept.

Before report a bug, make sure you have:

Please pay attention on issues you submitted, because we maybe need more details.
If no response anymore and we cannot reproduce it on current information, we will close it.

Please answer these questions before submitting your issue. Thanks!

Which version of ShardingSphere did you use?

5.5.1

Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?

ShardingSphere-JDBC

Expected behavior

It can load the custome algorithm class.

Actual behavior

It throws CNFE.

Reason analyze (If you can)

It is related to with ClassBasedShardingAlgorithmFactory
and there are multi class loaders in Quarkus framework. We need to try with TCCL.

The similar issue is like

Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.

Example codes for reproduce this issue (such as a github link).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions