StarRocks / starrocks

StarRocks, a Linux Foundation project, is a next-generation sub-second MPP OLAP database for full analytics scenarios, including multi-dimensional analytics, real-time analytics, and ad-hoc queries.
https://starrocks.io
Apache License 2.0
8.78k stars 1.76k forks source link

Error "Warehouse id: 0 not exist." #51576

Open Dan-J-D opened 1 week ago

Dan-J-D commented 1 week ago

Steps to reproduce the behavior (Required)

  1. Create a frontend & backend in the same docker compose file.
  2. Start docker compose & add the backend as a backend in the front end.
  3. Create a database & a table under it.
  4. Create a routine load to the table from a kafka stream.
  5. Stop both instances by pressing CTRL+C
  6. Wait for both all instances to stop
  7. Start up the instances again

Expected behavior (Required)

starrocks-fe-0  | WARNING: Exception thrown during asynchronous load
starrocks-fe-0  | java.util.concurrent.CompletionException: com.starrocks.common.ErrorReportException: Warehouse id: 0 not 
exist.
starrocks-fe-0  |       at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)    
starrocks-fe-0  |       at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)  
starrocks-fe-0  |       at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1702)   
starrocks-fe-0  |       at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)       
starrocks-fe-0  |       at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)       
starrocks-fe-0  |       at java.base/java.lang.Thread.run(Thread.java:829)
starrocks-fe-0  | Caused by: com.starrocks.common.ErrorReportException: Warehouse id: 0 not exist.
starrocks-fe-0  |       at com.starrocks.common.ErrorReportException.report(ErrorReportException.java:38)
starrocks-fe-0  |       at com.starrocks.server.WarehouseManager.getWarehouse(WarehouseManager.java:91)
starrocks-fe-0  |       at com.starrocks.server.WarehouseManager.getBackgroundWarehouse(WarehouseManager.java:258)
starrocks-fe-0  |       at com.starrocks.statistic.StatisticUtils.buildConnectContext(StatisticUtils.java:111)
starrocks-fe-0  |       at com.starrocks.sql.optimizer.statistics.ColumnBasicStatsCacheLoader.lambda$asyncLoadAll$1(ColumnBasicStatsCacheLoader.java:91)
starrocks-fe-0  |       at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)   
starrocks-fe-0  |       ... 3 more

Real behavior (Required)

Nothing.

StarRocks version (Required)

kevincai commented 6 days ago

@Dan-J-D do you have a complete stacktrace for the exception?

LiShuMing commented 1 day ago

should be fixed by this(https://github.com/StarRocks/starrocks/pull/51388/files), can you check it by applying this pr?

Dan-J-D commented 16 hours ago

@LiShuMing I am running it from docker, is there anyway for me to test it with a prebuilt docker image?