jt2594838 commented on code in PR #17039:
URL: https://github.com/apache/iotdb/pull/17039#discussion_r2706578848
##########
iotdb-client/client-cpp/src/main/SessionBuilder.h:
##########
@@ -80,6 +80,11 @@ class SessionBuilder : public AbstractSessionBuilder {
}
std::shared_ptr<Session> build() {
+ if (!AbstractSessionBuilder::nodeUrls.empty() &&
+ (AbstractSessionBuilder::host != DEFAULT_HOST ||
+ AbstractSessionBuilder::rpcPort != DEFAULT_RPC_PORT)) {
+ throw IoTDBException("Session builder does not support node urls");
Review Comment:
The exception message is not precise, maybe:
Session builder does not support setting node urls and host/rpcPort at the
same time.
--
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]