StarRocks / starrocks

The world's fastest open query engine for sub-second analytics both on and off the data lakehouse. With the flexibility to support nearly any scenario, StarRocks provides best-in-class performance for multi-dimensional analytics, real-time analytics, and ad-hoc queries. A Linux Foundation project.
https://starrocks.io
Apache License 2.0
9.23k stars 1.83k forks source link

query information_schema.partitions_meta failed after manual COMPACT #48975

Open xujinlong0314 opened 4 months ago

xujinlong0314 commented 4 months ago

Steps to reproduce the behavior (Required)

  1. admin set frontend config("lake_compaction_max_tasks"="0")
  2. 建表
  3. PIPE导入完成
    4.执行Comp命令 ALTER TABLE user_no_cache24 COMPACT
    5.查询info表 报错 select * from information_schema.partitions_meta where table_name = 'user_no_cache24';

Expected behavior (Required)

正常获得信息

Real behavior (Required)

ERROR 1064 (HY000): FE RPC failure, address=TNetworkAddress(hostname=10.0.23.189, port=9020), reason=Internal error processing getPartitionsMeta, host: unknown

日志 2024-07-26 11:40:41.840+08:00 ERROR (thrift-server-pool-240598|244889) [ProcessFunction.process():49] Internal error processing getPartitionsMeta java.lang.NullPointerException: null at com.starrocks.service.InformationSchemaDataSource.genPartitionMetaInfo(InformationSchemaDataSource.java:363) ~[starrocks-fe.jar:?] at com.starrocks.service.InformationSchemaDataSource.generatePartitionsMetaResponse(InformationSchemaDataSource.java:290) ~[starrocks-fe.jar:?] at com.starrocks.service.FrontendServiceImpl.getPartitionsMeta(FrontendServiceImpl.java:2538) ~[starrocks-fe.jar:?] at com.starrocks.thrift.FrontendService$Processor$getPartitionsMeta.getResult(FrontendService.java:5781) ~[starrocks-fe.jar:?] at com.starrocks.thrift.FrontendService$Processor$getPartitionsMeta.getResult(FrontendService.java:5758) ~[starrocks-fe.jar:?] at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:40) ~[libthrift-0.20.0.jar:0.20.0] at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:40) ~[libthrift-0.20.0.jar:0.20.0] at com.starrocks.common.SRTThreadPoolServer$WorkerProcess.run(SRTThreadPoolServer.java:311) ~[starrocks-fe.jar:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?] at java.lang.Thread.run(Thread.java:829) ~[?:?] 2024-07-26 11:40:41.942+08:00 ERROR (thrift-server-pool-240614|244906) [ProcessFunction.process():49] Internal error processing getPartitionsMeta java.lang.NullPointerException: null at com.starrocks.service.InformationSchemaDataSource.genPartitionMetaInfo(InformationSchemaDataSource.java:363) ~[starrocks-fe.jar:?] at com.starrocks.service.InformationSchemaDataSource.generatePartitionsMetaResponse(InformationSchemaDataSource.java:290) ~[starrocks-fe.jar:?] at com.starrocks.service.FrontendServiceImpl.getPartitionsMeta(FrontendServiceImpl.java:2538) ~[starrocks-fe.jar:?] at com.starrocks.thrift.FrontendService$Processor$getPartitionsMe

StarRocks version (Required)

main-0c6f8e3 存算分离3.3

joyking7 commented 1 month ago

we have the same problem, but if we connect follower FE not leader FE, it doesn't occur error, so wired~