starrorck3.1.13版本 java.lang.NullPointerException: null报错

为了更快的定位您的问题,请提供以下信息,谢谢
【详述】查询基础表sql时,偶发报错,无法复现;日志中的报错内容为 java.lang.NullPointerException: null
【背景】没有做过任何操作
【业务影响】
【是否存算分离】
【StarRocks版本】例如:3.1.13
【集群规模】例如:3fe(1 follower+2observer)+6be(fe与be混部)
【机器信息】CPU虚拟核/内存/网卡,例如:80C/382G/万兆
【联系方式】邮箱lile21@xdf.cn
【附件】
2025-04-28 15:11:35.262+08:00 WARN (thrift-server-pool-31367939|95899546) [StmtExecutor.execute():675] execute Exception, sql select * from 表名 where end_time >= ‘2025-04-28 15:11:24’ and end_time <= ‘2025-04-28 15:11:35’ and end_time like ‘%2025-04-28%’ and status = ‘0’ and operator_id in (‘aaa’) and end_time is not null;

java.lang.NullPointerException: null
at com.starrocks.qe.StmtExecutor.sendFields(StmtExecutor.java:1375) ~[starrocks-fe.jar:?]
at com.starrocks.qe.StmtExecutor.handleQueryStmt(StmtExecutor.java:1029) ~[starrocks-fe.jar:?]
at com.starrocks.qe.StmtExecutor.execute(StmtExecutor.java:557) ~[starrocks-fe.jar:?]
at com.starrocks.qe.ConnectProcessor.proxyExecute(ConnectProcessor.java:728) ~[starrocks-fe.jar:?]
at com.starrocks.service.FrontendServiceImpl.forward(FrontendServiceImpl.java:1124) ~[starrocks-fe.jar:?]
at com.starrocks.thrift.FrontendService$Processor$forward.getResult(FrontendService.java:3721) ~[starrocks-fe.jar:?]
at com.starrocks.thrift.FrontendService$Processor$forward.getResult(FrontendService.java:3701) ~[starrocks-fe.jar:?]
at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:38) ~[libthrift-0.13.0.jar:0.13.0]
at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:38) ~[libthrift-0.13.0.jar:0.13.0]
at com.starrocks.common.SRTThreadPoolServer$WorkerProcess.run(SRTThreadPoolServer.java:311) ~[starrocks-fe.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_242]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_242]
at java.lang.Thread.run(Thread.java:748) ~[?:1.8.0_242]

2025-04-28 15:11:35.262+08:00 WARN (thrift-server-pool-31367939|95899546) [StmtExecutor.execute():675] execute Exception, sql select * from 表名 where end_time >= ‘2025-04-28 15:11:24’ and end_time <= ‘2025-04-28 15:11:35’ and end_time like ‘%2025-04-28%’ and status = ‘0’ and operator_id in (‘aaa’) and end_time is not null;


at java.lang.Thread.run(Thread.java:748) ~[?:1.8.0_242]
2025-04-28 15:11:35.262+08:00 WARN (thrift-server-pool-31367939|95899546) [Coordinator.cancel():1586] cancel execution of query, this is outside invoke

  • 慢查询:
    • Profile信息
    • 并行度:show variables like ‘%parallel_fragment_exec_instance_num%’;
    • pipeline是否开启:show variables like ‘%pipeline%’;
    • be节点cpu和内存使用率截图
  • 查询报错:
  • be crash
    • be.out
  • 外表查询报错