You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "刘珍 (Jira)" <ji...@apache.org> on 2021/11/08 04:01:00 UTC

[jira] [Commented] (IOTDB-1367) [Distributed] Runtime exception is not properly handled during forwarding

    [ https://issues.apache.org/jira/browse/IOTDB-1367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17440173#comment-17440173 ] 

刘珍 commented on IOTDB-1367:
---------------------------

master (0073a28384cdb84e9469dbf98705ab158dd43a31) 

CREATE TIMESERIES root.ip4.sg5.dev1.s_1 WITH DATATYPE=BOOLEAN, ENCODING=PLAIN;
CREATE TIMESERIES root.ip4.sg5.dev1.s_2 WITH DATATYPE=FLOAT, ENCODING=PLAIN;
ALTER timeseries root.ip4.sg5.dev1.s_1 ADD TAGS unit=kilometer
ALTER timeseries root.ip4.sg5.dev1.s_2 ADD TAGS description=salary
ALTER timeseries root.ip4.sg5.dev1.s_1 ADD ATTRIBUTES color=green, country=china
ALTER timeseries root.ip4.sg5.dev1.s_2 ADD ATTRIBUTES loaction=shandong, customer=customer_name
ALTER timeseries root.ip4.sg5.dev1.s_1 UPSERT ALIAS=newAlias ;
ALTER timeseries root.ip4.sg5.dev1.s_2 UPSERT ALIAS=good ;
insert into root.ip4.sg5.dev1(time,s_1,s_2) values(11000,true,1.14);
insert into root.ip4.sg5.dev1(time,s_1,s_2) values(12000,false,2.14);
insert into root.ip4.sg5.dev1(time,s_1,s_2) values(13000,true,3.14);
insert into root.ip4.sg5.dev1(time,s_1,s_2) values(14000,false,9.14);
insert into root.ip4.sg5.dev1(time,s_1,s_2) values(15000,true,4.14);
insert into root.ip4.sg5.dev1(time,s_1,s_2) values(16000,false,5.14);
insert into root.ip4.sg5.dev1(time,s_1,s_2) values(17000,true,6.14);
insert into root.ip4.sg5.dev1(time,s_1,s_2) values(18000,false,7.14);

select avg(s_1) from root.ip4.sg5.dev1
{color:#DE350B}*Msg: 313: Request "Query aggregate: root.ip4.sg5.dev1.s_1 in [Node(internalIp:192.168.130.19, metaPort:9003, nodeIdentifier:-854866469, dataPort:40010, clientPort:6667, clientIp:192.168.130.19)]" timeout*{color}
 !screenshot-1.png! 


> [Distributed] Runtime exception is not properly handled during forwarding
> -------------------------------------------------------------------------
>
>                 Key: IOTDB-1367
>                 URL: https://issues.apache.org/jira/browse/IOTDB-1367
>             Project: Apache IoTDB
>          Issue Type: Bug
>          Components: Core/Cluster
>            Reporter: Tian Jiang
>            Priority: Major
>              Labels: client-me, distributed, query
>         Attachments: image-2021-05-07-20-14-47-670.png, screenshot-1.png
>
>
> When I executed `select avg(s_0) from root.group_0.d_20` (notice that s_0 is boolean and does not support avg), I got `Msg: 313: Request "Query aggregate: root.group_0.d_20.s_0 in [Node(internalIp:192.168.130.4, metaPort:9003, nodeIdentifier:1436654207, dataPort:40003, clientPort:6667, clientIp:0.0.0.0)]" timeout`. While the log on node 192.168.130.4 says:
>  !image-2021-05-07-20-14-47-670.png|thumbnail! 
> The cause is that RunTimeExceptions are not caught explicitly in DataClusterServer and MetaClusterServer, so they are converted to TExceptions by Thrift and are recognized as network problems by the coordinator.
> The solution is either to catch runtime exceptions explicitly and create status codes for them or make the coordinator capable of resolving more TExceptions. Both ways have their difficulties, for the first one, it is nearly impossible to know how many runtime exceptions can occur; for the second one, when an exception is converted to a TException, only its message remains, so it is not easy to determine what exactly the problem is.
> ps: this only occurs when the coordinator does not have the corresponding data, so try querying another node if you can not repeat it.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)