We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0081e8c commit c555c0eCopy full SHA for c555c0e
modules/core/src/main/java/org/apache/ignite/internal/jdbc/thin/JdbcThinConnection.java
@@ -301,6 +301,14 @@ public JdbcThinConnection(ConnectionProperties connProps) throws SQLException {
301
302
schema = JdbcUtils.normalizeSchema(connProps.getSchema());
303
304
+ if (connProps.isLocal()) {
305
+ if (connProps.getAddresses().length != 1
306
+ || connProps.getAddresses()[0].portFrom() != connProps.getAddresses()[0].portTo()) {
307
+ LOG.warning("Local flag is supposed to be used only when exactly one address is specified, " +
308
+ "otherwise the local query may be executed on an unexpected node");
309
+ }
310
311
+
312
partitionAwareness = connProps.isPartitionAwareness();
313
314
if (partitionAwareness) {
0 commit comments