This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch rel/1.0
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/rel/1.0 by this push:
     new 2cf9afaaae [IOTDB-5136] Fix NPE when use a null as username in session 
(#8395)
2cf9afaaae is described below

commit 2cf9afaaae67c4253039f0dc2dfc0a4a150ebc0d
Author: 马子坤 <[email protected]>
AuthorDate: Mon Dec 12 08:47:15 2022 +0800

    [IOTDB-5136] Fix NPE when use a null as username in session (#8395)
---
 thrift-influxdb/src/main/thrift/influxdb.thrift | 2 +-
 thrift/src/main/thrift/client.thrift            | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/thrift-influxdb/src/main/thrift/influxdb.thrift 
b/thrift-influxdb/src/main/thrift/influxdb.thrift
index 3177554c50..c317f389ca 100644
--- a/thrift-influxdb/src/main/thrift/influxdb.thrift
+++ b/thrift-influxdb/src/main/thrift/influxdb.thrift
@@ -46,7 +46,7 @@ struct InfluxOpenSessionResp {
 // Open a session (connection) on the server against which operations may be 
executed.
 struct InfluxOpenSessionReq {
   2: required string zoneId
-  3: optional string username
+  3: required string username
   4: optional string password
   5: optional map<string, string> configuration
 }
diff --git a/thrift/src/main/thrift/client.thrift 
b/thrift/src/main/thrift/client.thrift
index 25f391fd24..ce43ac8f50 100644
--- a/thrift/src/main/thrift/client.thrift
+++ b/thrift/src/main/thrift/client.thrift
@@ -96,7 +96,7 @@ struct TSOpenSessionResp {
 struct TSOpenSessionReq {
   1: required TSProtocolVersion client_protocol = 
TSProtocolVersion.IOTDB_SERVICE_PROTOCOL_V3
   2: required string zoneId
-  3: optional string username
+  3: required string username
   4: optional string password
   5: optional map<string, string> configuration
 }

Reply via email to