Uploaded image for project: 'Apache IoTDB'
  1. Apache IoTDB
  2. IOTDB-1367

[Distributed] Runtime exception is not properly handled during forwarding

    XMLWordPrintableJSON

Details

    Description

      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:

      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.

      Attachments

        1. image-2021-05-07-20-14-47-670.png
          52 kB
          Tian Jiang
        2. screenshot-1.png
          27 kB
          刘珍

        Activity

          People

            Unassigned Unassigned
            jt2594838 Tian Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: