korlov42 commented on code in PR #6566:
URL: https://github.com/apache/ignite-3/pull/6566#discussion_r2486258089
##########
modules/jdbc/src/main/java/org/apache/ignite/jdbc/IgniteJdbcDriver.java:
##########
@@ -302,7 +309,23 @@ private static TcpIgniteClient createIgniteClient(
IgniteClientConfiguration.DFLT_SQL_PARTITION_AWARENESS_METADATA_CACHE_SIZE
);
- return (TcpIgniteClient) sync(TcpIgniteClient.startAsync(cfg,
observableTimeTracker));
+ ChannelValidator channelValidator = ctx -> {
+ if
(!ctx.isFeatureSupported(ProtocolBitmaskFeature.SQL_MULTISTATEMENT_SUPPORT)) {
+ ClusterNode node = ctx.clusterNode();
+
+ throw new IgniteClientConnectionException(
+ CONNECTION_ERR,
+ IgniteStringFormatter.format("Connection to node
aborted, because the node does not support "
+ + "the feature required by the driver being
used. Please refer to the documentation and use a compatible "
+ + "version of the JDBC driver to connect to
this node [name={}, address={}, productVersion={}]",
+ node.name(), node.address(),
ctx.productVersion()),
Review Comment:
let's also include version of the driver
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]