<@U0A71G31CDV> In a shared nothing using 4.0 star ...
# questions-and-troubleshooting
g
@Rocky In a shared nothing using 4.0 star rocks OLAP on a blob storage with three CN and three FE what is the formula used to calculate lake_compaction_max_tasks if it is -1?
r
Formula:
lake_compaction_max_tasks = (number of alive CNs) × 16
The docs say it directly: "Setting this item to
-1
indicates calculating the concurrent task number in an adaptive manner, that is, the number of surviving CN nodes multiplied by 16. Setting this value to
0
will disable compaction."
So in your cluster: 3 CNs × 16 = 48 concurrent lake compaction tasks. (The same ×16 rule applies on 3.5 and 4.0.) Two caveats worth knowing: • This is an FE config (default
-1
, mutable, introduced in v3.1.0). It caps the number of tablet-level compaction subtasks the leader FE dispatches; each CN's own concurrency is separately capped by the CN/BE parameter
compact_threads
(default 4, and the docs recommend 25% of core count in production). So 48 FE-side tasks does not mean 48 parallel compactions — it's bounded per node by
compact_threads
. • A small terminology note: the "×16" adaptive rule lives in the shared-data (blob/object storage) compaction scheduler, which is what you're describing. In a genuinely shared-nothing cluster (local disks, no blob storage) compaction is driven by BE-side params (
cumulative_compaction_num_threads_per_disk
,
base_compaction_num_threads_per_disk
, etc.) and
lake_compaction_max_tasks
isn't the governing knob. If you're on blob storage, you're in shared-data mode regardless of how you label it. To check the effective value on 4.0:
ADMIN SHOW FRONTEND CONFIG LIKE "%lake_compaction%"
. References • administration/configuration/FE_parameters/shared_lake_other.md • administration/management/compaction.md • knowledge/admin_and_operation/shared_data_compaction.md (StarRocks knowledge base) • knowledge/qa/compaction_score.md (StarRocks knowledge base) • administration/configuration/BE_parameters/shared_lake_other.md • knowledge/reference/fe_configuration_from_source.md (StarRocks knowledge base)
g
@Rocky We are getting this error. How do we tell what table and partition is the problem? SQL Error [1064] [42000]: starlet err Object https://datao.core.windows.net/dataops-k8-starrocks/starrocks/99279b65-e878-4e12-ae2d-52298f81f999/db68230/74713947/74719189/data/00000000048a69d5_160ca52e-f42c-4ece-b480-3f0a3bf0e159.dat does not exist: BE:801554
r
Decode the path first Your URL maps onto the StarRocks shared-data layout like this:
Copy code
https://datao.core.windows.net/dataops-k8-starrocks/   ← storage volume container
  starrocks/                                           ← path prefix of the volume
  99279b65-e878-4e12-ae2d-52298f81f999/                ← StarOS shard-group (UUID) for this table
  db68230/                                             ← database ID = 68230
  74713947/                                            ← table ID = 74713947
  74719189/                                            ← tablet (shard) ID  ← the suspect
  data/00000000048a69d5_160ca52e-....dat               ← segment file <txn_id>_<uuid>.dat
The docs confirm
db<dbId>/<tableId>
and the
data/
+
meta/
+
log/
triple under a tablet root, and that shared-data segments are named
<txn_id>_<uuid>.dat
. One honest caveat: the segment between
db<dbId>/<tableId>
and a tablet's root is built inside the StarOS library, not in the StarRocks repo, so I can't prove from docs that
74719189
is the tablet ID rather than a partition ID. The queries below cover both.
BE:801554
is just the backend ID that reported the miss — not part of the identity. Map the IDs to db / table / partition
Copy code
sql
-- db 68230 → name, and the table list (TableId column)
SHOW PROC '/dbs';
SHOW PROC '/dbs/68230';

-- resolves whichever of tablet-id / partition-id 74719189 is real
SELECT * FROM information_schema.be_tablets
WHERE TABLET_ID = 74719189 OR PARTITION_ID = 74719189;
Take
TABLE_ID
/
PARTITION_ID
from that result and get the names:
Copy code
sql
SELECT DB_NAME, TABLE_NAME, PARTITION_NAME, PARTITION_ID, VISIBLE_VERSION,
       COMPACT_VERSION, DATA_VERSION, STORAGE_PATH, MAX_CS
FROM information_schema.partitions_meta
WHERE PARTITION_ID = <PARTITION_ID from above>;

-- and confirm the storage prefix matches your URL
SHOW PROC '/dbs/68230';        -- StoragePath column
SHOW TABLET 74719189;
also returns
DbName, TableName, PartitionName, IndexName
in the single-tablet form, but in shared-data clusters tablet-level commands are less reliable than the
information_schema
path above, so try it second. Then see which version references the missing file Once you have the tablet ID and the visible version:
Copy code
sql
SHOW PARTITIONS FROM <table>;   -- visible version

ADMIN EXECUTE ON 801554
'System.print(StorageEngine.get_lake_tablet_metadata_json(<tablet_id>, <version>))';
That dumps the
TabletMetadataPB
(rowsets → segment filenames), so you can see whether the rowset still references
00000000048a69d5_...dat
or whether the filename field is empty / the path resolves to a bare
data/
directory. Also check with
az storage blob list
(or azcopy) whether the
data/
directory exists at all and just that one object is gone, versus the whole directory missing — the two known issues below present differently. Likely causes worth checking against your exact 4.0.x build • Vacuum deleted a still-referenced bundled segment — file bundling (
enable_file_bundling
, default true for shared-data tables since 4.0) + a primary-key table where some tablets only produce deletes; symptom is exactly
Object .../<txn>_<uuid>.dat does not exist
. Fixed in 4.0.13 / 4.1.3, no 3.5 backport. • Mixed-version rolling upgrade/rollback with file bundling — segment filenames in tablet metadata get erased, tablet resolves to a directory path instead of a data file. Fixed only in 4.1.3; there is no backport to 4.0 or 3.5. If you did a rolling upgrade or rollback across versions, this is the one to rule out first, because it means actual data loss. • Batch publish + follower FE reading an intermediate version — usually shows up as a missing
meta/...meta
object, so less likely for a
.dat
miss, but it is fixed in 4.0.0/3.5.0. What 4.0.x patch level are you on? That determines whether the first two are even in scope. References • knowledge/known_issues/shared_data.md (StarRocks knowledge base)
g
@Rocky We are on 4.1.1-14b7e3f
r
Where 4.1.1 lands Both candidate bugs from my last message are still open on 4.1.1: Issue | Fixed in | 4.1.1 status Vacuum deletes a bundled data file still referenced by delete-only tablets (PR 75689) | 4.1.3, 4.0.13 (no 3.5 backport) | vulnerable Mixed-version rolling upgrade/rollback erases segment filenames (PR 75193) | 4.1.3 only (no 4.0/3.5 backport) | vulnerable Vacuum deletes bundle files after FE downgrade | 4.1.0, 4.0.4 | fixed already Your error text points at the first one. The docs give the two symptoms as distinguishable strings: • bundling/vacuum bug →
Object s3://.../<txn>_<uuid>.dat does not exist
• mixed-version bug →
starlet err Object s3://.../<tablet>/data/ does not exist
(a bare
data/
directory, no filename) You got a full
00000000048a69d5_160ca52e-....dat
filename, which is the first shape. So rule out the upgrade one — did you do a rolling upgrade or rollback with mixed BE versions recently? If not, the vacuum/bundling bug is the leading explanation. Confirming it's that bug The documented trigger is narrow, so check all of these against the table you identified: 1. Is it a PRIMARY KEY table? 2. Is file bundling enabled?
enable_file_bundling
is a mutable FE config, default
true
, and default-on for shared-data tables since 4.0 — so unless you turned it off, yes:
ADMIN SHOW FRONTEND CONFIG LIKE "%enable_file_bundling%"
. 3. Was there a load where one tablet upserted and sibling tablets only deleted rows (so delete-only tablets produced 0-row bundled segments)? Correlate the load times against when queries started failing. 4. Is the publish queue stuck for that table? That's the escalation signal — the docs say the whole table's publish queue can wedge. What to do Upgrade to 4.1.3 or later on the 4.1 line. There is no fix available in any 4.1.1 build. One important caveat on your version string:
4.1.1-14b7e3f
is a non-standard build (upstream releases are plain
4.1.1
), so I can't tell you whether PR 75689 / 75193 are in it — the "fixed in 4.1.3" statement is about upstream release tags. Whoever produced that build needs to confirm whether those two PRs are cherry-picked. If they are, then this is something else and you'd want the tablet metadata dump from the previous message plus BE logs from the reporting node (
BE:801554
) around the load time. If you need to reduce exposure while waiting on the upgrade, the documented lever for premature file removal in shared-data is FE config
lake_autovacuum_grace_period_minutes
(default 30, mutable) — raising it widens the retention window so vacuum is less likely to delete a file still in use. That's the documented remedy for "meta does not exist" / early-vacuum errors; applying it to this specific bundling bug is my inference, not something the known-issue entry states. It won't repair files already deleted. Worth noting this is a data-loss-class bug for the affected rows, so I'd treat the upgrade as the fix rather than a tuning exercise. References • faq/shared_data_faq.md • administration/configuration/BE_parameters/shared_lake_other.md • knowledge/qa/starlet_getshard_deadline_exceeded.md (StarRocks knowledge base) • knowledge/known_issues/shared_data.md (StarRocks knowledge base) • knowledge/admin_and_operation/shared_data_garbage_cleanup.md (StarRocks knowledge base) • administration/configuration/FE_parameters/shared_lake_other.md