This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new a457e8f71fc fixed the issue of missing enableQueryRedirection
parameter in SSL (#11436)
a457e8f71fc is described below
commit a457e8f71fc5da10d45dab740cebce956ceeca77
Author: CloudWise-Lukemiao
<[email protected]>
AuthorDate: Wed Nov 1 00:29:54 2023 +0800
fixed the issue of missing enableQueryRedirection parameter in SSL (#11436)
Co-authored-by: luke.miao <[email protected]>
---
.../session/src/main/java/org/apache/iotdb/session/Session.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git
a/iotdb-client/session/src/main/java/org/apache/iotdb/session/Session.java
b/iotdb-client/session/src/main/java/org/apache/iotdb/session/Session.java
index 4eea3ddf120..4465dcfe5d9 100644
--- a/iotdb-client/session/src/main/java/org/apache/iotdb/session/Session.java
+++ b/iotdb-client/session/src/main/java/org/apache/iotdb/session/Session.java
@@ -387,11 +387,12 @@ public class Session implements ISession {
public Session(Builder builder) {
if (builder.nodeUrls != null && builder.nodeUrls.size() > 0) {
this.nodeUrls = builder.nodeUrls;
- this.enableRedirection = true;
+ this.enableQueryRedirection = true;
} else {
this.defaultEndPoint = new TEndPoint(builder.host, builder.rpcPort);
- this.enableRedirection = builder.enableRedirection;
+ this.enableQueryRedirection = builder.enableRedirection;
}
+ this.enableRedirection = builder.enableRedirection;
this.username = builder.username;
this.password = builder.pw;
this.fetchSize = builder.fetchSize;