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.25k stars 1.84k forks source link

Exception thrown during asynchronous load when FE restart #46646

Open medivh666 opened 6 months ago

medivh666 commented 6 months ago

report error when FE restart

Jun 05, 2024 2:57:56 AM com.github.benmanes.caffeine.cache.LocalAsyncCache$AsyncBulkCompleter accept WARNING: Exception thrown during asynchronous load java.util.concurrent.CompletionException: java.lang.NullPointerException at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273) at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280) at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1606) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:750) Caused by: java.lang.NullPointerException at com.starrocks.lake.LakeTablet.getBackendIds(LakeTablet.java:120) at com.starrocks.lake.LakeTablet.getQueryableReplicas(LakeTablet.java:132) at com.starrocks.planner.OlapScanNode.addScanRangeLocations(OlapScanNode.java:489) at com.starrocks.sql.plan.PlanFragmentBuilder$PhysicalPlanTranslator.visitPhysicalOlapScan(PlanFragmentBuilder.java:755) at com.starrocks.sql.plan.PlanFragmentBuilder$PhysicalPlanTranslator.visitPhysicalOlapScan(PlanFragmentBuilder.java:375) at com.starrocks.sql.optimizer.operator.physical.PhysicalOlapScanOperator.accept(PhysicalOlapScanOperator.java:185) at com.starrocks.sql.plan.PlanFragmentBuilder$PhysicalPlanTranslator.visit(PlanFragmentBuilder.java:392) at com.starrocks.sql.plan.PlanFragmentBuilder$PhysicalPlanTranslator.translate(PlanFragmentBuilder.java:386) at com.starrocks.sql.plan.PlanFragmentBuilder.createPhysicalPlan(PlanFragmentBuilder.java:222) at com.starrocks.sql.StatementPlanner.createQueryPlan(StatementPlanner.java:164) at com.starrocks.sql.StatementPlanner.planQuery(StatementPlanner.java:125) at com.starrocks.sql.StatementPlanner.plan(StatementPlanner.java:99) at com.starrocks.statistic.StatisticExecutor.executeDQL(StatisticExecutor.java:333) at com.starrocks.statistic.StatisticExecutor.executeStatisticDQL(StatisticExecutor.java:323) at com.starrocks.statistic.StatisticExecutor.queryStatisticSync(StatisticExecutor.java:117) at com.starrocks.sql.optimizer.statistics.ColumnBasicStatsCacheLoader.queryStatisticsData(ColumnBasicStatsCacheLoader.java:129) at com.starrocks.sql.optimizer.statistics.ColumnBasicStatsCacheLoader.lambda$asyncLoadAll$1(ColumnBasicStatsCacheLoader.java:93) at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604) ... 3 more

Expected behavior (Required)

Real behavior (Required)

StarRocks version (Required)

github-actions[bot] commented 2 hours ago

We have marked this issue as stale because it has been inactive for 6 months. If this issue is still relevant, removing the stale label or adding a comment will keep it active. Otherwise, we'll close it in 10 days to keep the issue queue tidy. Thank you for your contribution to StarRocks!