jt2594838 commented on code in PR #18084:
URL: https://github.com/apache/iotdb/pull/18084#discussion_r3518142508
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/processor/twostage/exchange/receiver/TwoStageAggregateReceiver.java:
##########
@@ -46,6 +49,14 @@ public IoTDBSinkRequestVersion getVersion() {
@Override
public TPipeTransferResp receive(TPipeTransferReq req) {
try {
+ final IClientSession clientSession = SESSION_MANAGER.getCurrSession();
+ if (!SESSION_MANAGER.checkLogin(clientSession)) {
+ return new TPipeTransferResp(
+ RpcUtils.getStatus(
+ TSStatusCode.NOT_LOGIN,
+ "Log in failed. Either you are not authorized or the session
has timed out."));
+ }
Review Comment:
i18n
--
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]