<@U0A71G31CDV>, I am getting this error - starrock...
# questions-and-troubleshooting
k
@Rocky, I am getting this error - starrocks-cn-0.starrocks-cn-search.trino.svc.cluster.local: starlet err grpc.GetShard(shardId=365249971) error: shard 365249971 not exist. when a new sink and table is created from risingwave to starrocks and no data is being populated, I have tried multiple time but I am still stuck here
r
Short version: this isn't a RisingWave chunk-load error — it's StarRocks' shared‑data (lake) internals reporting that the compute node asked StarMgr for a shard and StarMgr said the shard doesn't exist at all. That's different from the more common "Deadline Exceeded" variant. What the message means • The CN's
StarOSWorker
missed the shard in its local shard table, so it fell back to a blocking
get_shard_info()
RPC to StarMgr (the StarOS manager running inside the FE, listening on
cloud_native_meta_port
, default 6090). • This time the answer wasn't a timeout, it was "not exist". So the FE's StarMgr metadata that answered has no record of shard
365249971
. • Three plausible readings (my inference, not documented): the shard was never created (the CREATE TABLE path returned early or partially failed), it was deleted/cleaned up, or the FE that answered is behind on its StarMgr journal. Things worth checking, in this order 1. Is the shard actually in StarRocks metadata? On the FE:
SHOW PROC '/dbs/<db_name>'
and
SHOW TABLET FROM <db>.<table>
(or
SHOW TABLET <id>
). If the ID doesn't appear in the table's tablet list, the shard really was never created or has been removed — the sink is innocent. In shared-data the shard is created per tablet, so a missing shard usually means a broken table. 2. Which FE is the sink talking to? There is a known issue where DDL forwarded by a follower FE returns after the FE journal replay but before the StarMgr journal replay, so shards are briefly unknown to that follower's StarMgr. It's documented as a "no queryable replica" symptom on query, but the mechanism is the same class of problem. Fixed in 4.1.1, 4.0.10, 3.5.16 (no backport below those). If you're on an older patch, try pointing the sink at the leader FE / retry after a few seconds, or upgrade. 3. DDL returning before tablets exist. Also known: CREATE TABLE / ADD PARTITION can return success while tablets are still being created (fixed in 4.1.7). If your sink starts writing immediately after creating the table, that window could produce this. Check fe.log for "Table creation timed out. unfinished replicas…" or
all tasks finished, N failed
. 4. Shard cleanup.
shard_group_clean_threshold_sec
(default 3600, mutable) is the protection window before FE cleans unused shard groups; there are documented bugs where newly created shard groups get deleted incorrectly (fixed 4.1.0/4.0.0/3.5.0, and a workaround of raising the threshold to 7200–10800 for very large clusters). Check the FE log around the time of creation for shard/shard-group deletion. 5. Did the write path really reach the CN? Do a manual
INSERT INTO <table> VALUES (...)
from the MySQL client. If that also fails with the same error, it's purely StarRocks. If it succeeds, the problem is in how the RisingWave sink picks the target node. 6. Metrics (4.0/4.1 CNs only):
starrocks_be_staros_shard_info_fallback_total
and
..._fallback_failed_total
— a rising failed ratio confirms the CN is repeatedly asking StarMgr for shards it doesn't have. Honest caveat: I could not find a documented issue that matches this exact signature ("shard not exist" on a newly created table during ingestion). The docs only describe this text in the context of dropped tablets (
Not found: starlet err shard X not exist.
) and shard-group-not-exist cases. So I can't tell you "this is bug N, upgrade to X" — items 2 and 3 are the closest documented mechanisms and both are version-dependent. Please tell me your exact StarRocks version (and whether RisingWave connects to a leader or follower FE), plus what
SHOW TABLET
says for that shard, and I can narrow it further. If it turns out to be a genuine defect, the StarRocks GitHub issues page / community Slack is where a maintainer can confirm. References • knowledge/known_issues/shared_data.md (StarRocks knowledge base) • faq/shared_data_faq.md
• knowledge/qa/starlet_getshard_deadline_exceeded.md (StarRocks knowledge base) • quick_start/shared-data.md • administration/configuration/BE_parameters/shared_lake_other.md • deployment/deploy_shared_data_manually.md