Repository navigation
Description
Information
- Environment: QA
- MOI namespace:
moi-qa - MatrixOne namespace / cluster:
mo-new-moi/moi-mo-2606 - MOI release first correlated with the regression:
5.1.0-302a531e-20260729, deployed at2026-07-30 05:39 CST - Relevant implementation commit included by that release:
85245b375(fix(catalog): move external metadata discovery into core jobs (#14234)) - MatrixOne image:
v4.1.3-a185c23b3-2026-07-21 - CN topology: 2 replicas, each limited to
36GiB;GOMEMLIMIT=35000MiB,GOGC=200, shared memory cache capacity12GiB
Describe the bug
The Catalog metadata discovery job performs a full inventory and reconciliation of every active workspace on a fixed 5-second cadence.
The scheduler has a 1-second base tick, 8 workers and an in-flight guard. The guard prevents one pass from overlapping itself, but it does not avoid rescanning unchanged workspaces after the pass finishes. At QA scale, a full pass currently finishes in roughly 18 seconds, so all active workspaces and their databases are continuously rescanned approximately every 18 seconds.
This creates sustained SQL and memory pressure on MatrixOne. Both CNs repeatedly reach the 36GiB cgroup limit and are terminated with OOMKilled / exit code 137. The most affected CN recently survived only 16–25 minutes between OOM restarts.
This issue is scoped to the MOI metadata discovery workload and CN OOM. The independent QA Log Service problem is being investigated separately and is intentionally excluded.
Timeline and observed impact
2026-07-30 05:39 CST: MOI release302a531edeployed; it includes the new Catalog metadata discovery scheduler.05:44 CST: first CN OOM in the dense restart sequence.- Around
05:50 CST: aggregate SQL request rate increased to approximately600–2000 requests/sper CN. - Previous comparable 12-hour period: approximately
130–165 requests/sper CN. - Hourly statement volume increased from approximately
0.8–1.6M/hourto6.4–8.5M/hour. - The affected CN restart count increased from 16 to 25 during the day. Recent lifetimes were approximately 16 minutes and 25 minutes.
- Immediately before the latest OOM, CN logged:
- RSS:
34.49GiB - cgroup memory:
36GiB - memory pressure state:
hard - workspace-accounted demand:
251.5GiB - cache eviction was attempted, but the process was subsequently OOM-killed.
- RSS:
Job behavior
Relevant implementation properties in moi-core/catalog/pkg/jobs at commit 85245b375:
MetadataDiscoveryJob.Interval()returns a fixed5 * time.Second.- Scheduler
baseTick = 1s. - Scheduler
WorkerCount = 8. - Every pass lists all workspaces and enqueues every active workspace.
- Each workspace opens a short-lived owner database connection.
- Each workspace runs
SHOW DATABASES. - Catalog assignments are fully listed with pagination.
- Every discovered user database runs
SyncMetadata, even when there is no known change. SyncMetadatainventories all tables and reconciles Catalog metadata.
Schemas and tables involved
Catalog system database (moi_qa in QA)
Used to enumerate workspaces and resolve workspace owner/admin database credentials. Observed statements include access to:
workspacesdb_users- encrypted database credential / database instance records
moi_versionand upgrade state tables from concurrent Catalog control-plane processing
Per-workspace MOI metadata database (moi)
Repeated reads and reconciliation touch:
catalogcatalog_databasecatalog_table
MatrixOne metadata schemas in each workspace account
Repeated inventory queries touch:
information_schema.SCHEMATAinformation_schema.TABLESmo_catalog.mo_database
Exact deployed SQL and execution profile
The following is not reconstructed or simplified SQL. It is extracted from the exact QA-deployed MatrixFlow commit 302a531e (which contains implementation commit 85245b375). The source entry points are:
moi-core/catalog/pkg/jobs/metadata_discovery.gomoi-core/catalog/pkg/jobs/scheduler.gomoi-core/catalog/pkg/service/storage/system/impl.gomoi-core/catalog/pkg/service/storage/tenant/impl.gomoi-core/catalog/pkg/service/storage/tenant/system_resource_display.gomoi-core/catalog/pkg/service/database/metadata_executor.gomoi-core/catalog/pkg/service/database/service_impl.go
Catalog system-database SQL
Once per scheduler pass, Catalog enumerates every workspace:
SELECT id, name, description, owner_id, owner_revision, owner_changed_at, account_name, status, created_at, updated_at
FROM moi_qa.workspaces;For every accepted active workspace, GetOwnerDBConnection runs these exact queries before opening the workspace owner connection:
SELECT id, name, description, owner_id, owner_revision, owner_changed_at, account_name, status, created_at, updated_at
FROM moi_qa.workspaces
WHERE id = ?;
SELECT id, user_id, workspace_id, db_username, is_admin, created_at, updated_at
FROM moi_qa.db_users
WHERE workspace_id = ?;
SELECT encrypted_db_password
FROM moi_qa.db_users
WHERE user_id = ? AND workspace_id = ?;Per-workspace inventory SQL
A new short-lived owner *sql.DB is opened for every workspace and closed after that workspace completes. It first runs exactly:
SHOW DATABASES;The code removes these names in memory and synchronizes every remaining database: information_schema, mysql, mo_catalog, system_metrics, system, mo_task, moi.
ListCatalogs, with page_size = 100 and offset decoded from the page token, runs in its own tenant transaction:
START TRANSACTION;
SELECT COUNT(*) FROM catalog;
SELECT catalog_id, catalog_name, comment, created_at, created_by, updated_at, updated_by
FROM catalog
ORDER BY catalog_id ASC
LIMIT ? OFFSET ?;
COMMIT;For each catalog returned above, ListDatabases, also with page_size = 100, runs in its own tenant transaction:
START TRANSACTION;
SELECT catalog_id, catalog_name, comment, created_at, created_by, updated_at, updated_by
FROM catalog
WHERE catalog_id = ?;
SELECT COUNT(*)
FROM catalog_database
WHERE catalog_id = ?;
SELECT database_id, catalog_id, database_name, comment, created_at, created_by, updated_at, updated_by
FROM catalog_database
WHERE catalog_id = ?
ORDER BY database_id ASC
LIMIT ? OFFSET ?;
COMMIT;Both list paths also resolve display mappings. For N returned resources the source generates exactly one predicate per resource field (name and description), so N × 2 parenthesized predicates and N × 6 bound values are sent:
SELECT resource_type, resource_id, field, display_owner, display_key, default_text, created_at, updated_at
FROM system_resource_display_mapping
WHERE (resource_type = ? AND resource_id = ? AND field = ?)
OR (resource_type = ? AND resource_id = ? AND field = ?);The second predicate above is repeated by the source for every additional field after the first. This is a dynamically generated statement, not a fixed SQL literal; the exact statement length is therefore determined by the number of catalogs or databases returned in that page.
Per-database SyncMetadata SQL
Every non-system database from SHOW DATABASES starts a separate tenant transaction and runs the following stable-state path:
START TRANSACTION;
SELECT catalog_id, catalog_name, comment, created_at, created_by, updated_at, updated_by
FROM catalog
WHERE catalog_id = ?;
SELECT COUNT(*)
FROM information_schema.SCHEMATA
WHERE SCHEMA_NAME = ?;
SELECT database_id, catalog_id, database_name, comment, created_at, created_by, updated_at, updated_by
FROM catalog_database
WHERE database_name = ?;
SELECT dat_type
FROM mo_catalog.mo_database
WHERE datname = ?;
SELECT TABLE_NAME, TABLE_COMMENT
FROM information_schema.TABLES
WHERE TABLE_SCHEMA = ?
AND TABLE_TYPE = 'BASE TABLE';
SELECT table_id, database_id, catalog_id, table_name, comment, extra,
created_at, created_by, updated_at, updated_by
FROM catalog_table
WHERE database_id = ?
ORDER BY table_id ASC;
COMMIT;For a subscription database, the information_schema.TABLES statement is replaced by the exact dynamically quoted statement:
SHOW TABLES FROM `<database_name_with_backticks_doubled>`;When discovered metadata differs, the same transaction conditionally executes the following exact source statements:
INSERT INTO catalog_database (catalog_id, database_name, comment, created_by, updated_by)
VALUES (?, ?, ?, ?, ?);
SELECT database_id, catalog_id, database_name, comment, created_at, created_by, updated_at, updated_by
FROM catalog_database
WHERE database_id = ?;
UPDATE catalog_database
SET catalog_id = ?, database_name = ?, comment = ?, updated_by = ?, updated_at = CURRENT_TIMESTAMP
WHERE database_id = ?;
DELETE FROM catalog_table WHERE table_id = ?;
DELETE FROM catalog_table WHERE database_id = ?;
DELETE FROM catalog_database WHERE database_id = ?;
INSERT INTO catalog_table (database_id, catalog_id, table_name, comment, extra, created_by, updated_by)
VALUES (?, ?, ?, ?, ?, ?, ?);Exact client/scheduling behavior required to reproduce the load
A plain SQL file is not an identical reproduction of this workload. The deployed code uses Go database/sql plus go-sql-driver/mysql with parameter placeholders. MatrixOne therefore observes parameterized statements as Prepare -> Execute -> Deallocate. Each list operation and each per-database SyncMetadata call has its own START TRANSACTION -> COMMIT pair.
The deployed scheduler behavior is:
- fixed interval:
5s - scheduler tick:
1s - workers:
8 - queue capacity:
1024 - one complete pass enqueues every active workspace
- overlap is prevented only while the previous pass still has queued/running units
- if a pass takes longer than 5 seconds, the next 1-second scheduler tick after completion immediately starts another full pass
- one short-lived owner database connection per workspace
- one
SHOW DATABASESper workspace - one
SyncMetadatatransaction per discovered non-system database
Therefore an identical replay must use the same client protocol behavior, transaction boundaries, 8-way concurrency, workspace/database cardinality and loop timing; replaying only the SQL strings with the MySQL CLI is not equivalent.
QA data scale and measured workload
A five-minute Catalog log sample showed:
| Metric | Value |
|---|---|
| Discovery passes enqueued | 17 |
| Workspace units enqueued | 1,347 |
| Workspace executions completed | 1,212 |
| Distinct successfully completed workspaces | 73 |
| Active workspace units per pass | 79–80 |
| Databases inventoried and synchronized | 5,039 |
| Average databases per completed workspace execution | 4.16 |
| Maximum databases in one workspace | 27 |
| Logged per-database sync failures | 0 |
In the same five-minute window, all cloud_nonuser_sql traffic recorded by MatrixOne was:
| Statement type | Count |
|---|---|
Select |
87,309 |
Prepare |
86,776 |
Deallocate |
86,776 |
Start Transaction |
14,373 |
Commit |
14,370 |
Show Databases |
1,796 |
Update |
623 |
Insert |
219 |
Show Tables |
89 |
The Select statements read approximately 17.0M rows and scanned approximately 3.29GiB in five minutes. SHOW TABLES recorded an additional approximately 536K rows read and 105MiB scanned. These cloud_nonuser_sql totals include a small amount of other MOI control-plane traffic, but discovery is the dominant workload during the sample.
How to reproduce
- Deploy a MOI build containing commit
85245b375with Catalog jobs enabled. - Prepare approximately 80 active workspaces. QA currently has 79–80 eligible units per pass.
- Give each workspace one or more user databases; the QA average is 4.16 and maximum is 27.
- Start Catalog and observe
catalog job units enqueuedandmetadata discovery workspace completedlogs. - Confirm that a new full pass begins shortly after the previous pass completes, because the fixed 5-second interval has already elapsed.
- Monitor:
mo_frontend_request_count- CN CPU and
container_memory_working_set_bytes kube_pod_container_status_restarts_total- CN
MemoryThrottler-*logs
- Observe sustained high SQL rate, CN RSS approaching
36GiB, hard memory pressure and repeatedOOMKilledrestarts.
Expected behavior / acceptance criteria
- Unchanged workspaces must not receive a complete database and table reconciliation every few seconds.
- Discovery scheduling must scale with actual metadata changes rather than
workspace_count × database_count × fixed cadence. - Concurrency and database work must remain bounded at QA scale.
- The implementation must expose job duration, queue depth, workspace/database counts and failures as metrics.
- With the current QA dataset, CN memory must stabilize below its cgroup limit and run for at least 30 minutes without OOM while normal QA traffic continues.
- SQL request rate should return near the pre-regression baseline when there are no metadata changes.
Activity
perf(disttae): eliminate per-tombstone scan allocations (#26470)
gouhongshen commentedon Jul 31, 2026
进一步分析确认需要把问题拆成两个独立修复面:
MOI 跟踪 Issue 已重开:matrixorigin/matrixflow#14373。计划方向是保留 MOI DDL 的定向即时同步,将外部 DDL discovery 改为低频批量 inventory + diff、从上一轮完成后计时,并补齐外部 DROP 对账和调度指标。
因此 #26465 继续跟踪 MO 的分配放大;matrixflow#14373 独立跟踪 MOI 的扫描算法和调度优化。
perf(disttae): index tombstone object ranges (#26476)
gouhongshen commentedon Aug 7, 2026
Additional QA finding: duplicated FK / ref-child metadata turns logically no-op
ALTER ... CHANGEinto a large allocation amplifierThis is a separate amplification path observed in the same QA CN allocation profile. It is not evidence that the 5-second MOI discovery job created the corrupted schema metadata; the origin of the duplicate constraint writes has not yet been reduced to one external SQL sequence. It does show that, once this metadata is present, otherwise small external DDL can generate very large CN allocation volume.
Observed trigger
The following logically no-op statement was repeatedly issued against a user workspace database:
At the observation snapshot,
namealready had exactly that definition. Nevertheless,ALTER TABLE ... COPYis used by v4.1.3, so MatrixOne creates a replacement table, copies data, drops the old table, and renames the replacement. The replacement obtains a new physical table ID, which triggers foreign-key / ref-child metadata rewrites.CN logs recorded at least 30
departments -> departments_copy_*copy executions between2026-08-07 02:29and03:34UTC. Every corresponding base-table copy reportedAffectedRows=0(copy stage roughly 13ms--983ms); the related unique-indexTABLE-CLONErecords were alsoobjCnt=0, blkCnt=0, rowCnt=0. This is not a large-row-data copy problem.Schema metadata at the observation snapshot
The following counts were decoded from the current
mo_catalog.mo_tables.constraintbinary using the exact v4.1.3engine.ConstraintDef.UnmarshalBinarywire format. They are the constraint representation consumed by the ALTER implementation, not inferred from table row data.recruitment.departmentsrecruitment.usersrecruitment.candidatesImportant relationships:
usersforeign-key definitions have distinct names but point to the same currentdepartmentstable ID.departmentscarries 349 ref-child IDs. Only one (users) is current-visible inmo_catalog.mo_tables; the other 348 are historical/inactive IDs at the inspection snapshot.candidatescontains 702 FKs: 234 each tojobs,talent_pools, andusers.For comparison, the intended normal shape is one FK edge
users.department_id -> departments.idand one matching ref-child entry. The observed shape is hundreds of duplicated logical edges and historical child-table IDs.There is also a metadata discrepancy worth investigating:
mo_catalog.mo_foreign_keyscurrently has norecruitmentrows, while the activemo_tables.constraintblobs above contain these FK/ref-child definitions. The allocation conclusion below relies on the latter, because it is what the engine actually unmarshals and mutates.Why one no-op ALTER becomes hundreds of full constraint rewrites
At
a185c23b3:pkg/sql/plan/build_alter_table.go:buildAlterTableCopyselectsAlterTable_COPYforCHANGE.pkg/sql/compile/alter.go:AlterTableCopyperforms the base-table replacement.updateTableForeignKeyColIdloads each child constraint and callschildRel.UpdateConstraint(...).UpdateConstraintdoes not patch the changed table ID in place. It serializes the fullConstraintDef, entersAlterTable, then rebuilds table metadata throughtxnDatabase.createWithID.The full constraint is serialized at least three times in this path:
ConstraintDef.MarshalBinarystarts with an emptybytes.Bufferand serializes everyIndexDef/ FK entry.bytes.growSlice,plan.Property.Marshal, andplan.IndexDef.Marshalare therefore direct allocation hot spots.Using the current
usersconstraint size only as a scale reference, reserializing 180,356 bytes three times for 349 ref-child entries is already about 180MiB of raw encoded payload for onedepartmentsALTER, before buffer growth/copies, metadata batch construction, index-table creation, and the reverse parent-table updates. The actual historical child versions may differ in size; this calculation is an order-of-magnitude illustration, not an attribution of an exact per-statement byte count.The reciprocal path is also multiplicative: when
usersis ALTERed,AlterTableCopyiterates every FK inqry.CopyTableDef.Fkeysand callsnotifyParentTableFkTableIdChange, i.e. hundreds of parentUpdateConstraintoperations.candidateshas 702 such FKs.AddChildTblIdToParentTableinpkg/sql/compile/ddl.gocurrently appendstblIddirectly tooldRefChildDef.Tableswithout a uniqueness check. This does not prove it was the original source of all duplicates, but it means duplicated relationships are retained and can continue to amplify later ALTER COPY operations.Allocation evidence
A QA CN
alloc_spaceprofile captured at2026-08-07 10:36 CSTis cumulative for that service process. It recorded18.37TBtotal allocated space, with this ALTER-copy chain dominating:The profile is process-lifetime cumulative, so it cannot attribute every byte to one
departmentsstatement. However, the live duplicated FK/ref-child graph, the exact copy-ALTER implementation, and the dominant call tree all align: the cost is driven by repeated full metadata reconstruction over an already duplicated dependency graph, not by the zero data rows indepartments.Minimal reproducer shape / investigation direction
The exact initial SQL sequence that produced the QA duplicate metadata is still unknown. A reduced reproducer should construct:
alloc_spaceprofile around that ALTER.Expected observations are proportional
UpdateConstraintcalls for every stored FK/ref-child entry and dominantConstraintDef.MarshalBinary/bytes.growSliceallocation.Potential fix directions to evaluate:
RefChildTblsrather than iterating them during every ALTER COPY;Relevant stored schema, with repetition made explicit
The complete stored
rel_createsqlvalues are roughly 46 KiB (departments), 86 KiB (users), and 104 KiB (candidates) because they literally contain hundreds of repeated constraint clauses. Pasting those clauses verbatim would obscure the relationship, so the following is the relevant, normalized shape;x Nmeans N separately named clauses in the stored DDL, not an inferred count.This was also checked directly against the user-visible stored CREATE SQL, rather than only against the binary constraint blob:
departments.rel_createsqlcontains neitherFOREIGN KEYnorREFERENCES;users.rel_createsqlcontains the repeateddepartmentId -> departments.idclauses; andcandidates.rel_createsqlcontains the three repeated FK groups above. TheRefChildTblsondepartmentsis MatrixOne's inverse/internal parent-side record of child table IDs; it is not expected to appear as aFOREIGN KEYclause in the parent DDL.Observed DDL versus the still-unknown metadata origin
The concrete external DDL observed repeatedly in QA is exactly:
It is a logical no-op, but v4.1.3 takes the COPY ALTER path. The observed
departments_copy_<uuid>operations andINSERT INTO departments_copy_<uuid> ... SELECT ... FROM departmentsentries are MatrixOne's internal replacement/copy work resulting from that ALTER; the latter is DML, not another user-issued DDL. In the inspected interval, 30 such copy executions had zero copied base-table rows.We have not yet recovered the historical client/ORM DDL sequence that inserted the 349/702 separately named duplicate FK clauses and repeated unique keys. The no-op
CHANGEstatement is therefore established as the allocation trigger on already-expanded metadata, not claimed as the original creator of that metadata. Any root-cause fix for the initial duplication needs a reduced CREATE/ALTER/DROP reproducer or historical client SQL in addition to the engine-side safeguards discussed above.gouhongshen commentedon Aug 7, 2026
Separate MemoryCache accounting / capacity-limit finding: logical bytes are not mmap backing bytes
This is another independent memory-risk path in the same QA OOM investigation. It does not prove that MemoryCache alone caused every CN OOM, but it establishes that the configured MemoryCache capacity and its current gauges are not a hard bound on off-heap mapped memory or RSS.
QA observation
Before the capacity mitigation, QA CNs had a shared MemoryCache capacity of
12GiB. At a pre-OOM observation snapshot:The cache capacity was later reduced to
6GiBas a risk reduction. That reduces the logical cache budget, but it does not change the accounting mismatch described below into a physical6GiBRSS cap.Exact deployed accounting path (
v4.1.3-a185c23b3)pkg/fileservice/malloc.gobuildsmemoryCacheAllocatorfrommalloc.GetDefault(nil)and wraps it inmalloc.NewMetricsAllocator. The QA CN FileService configurations inspected here contain no malloc allocator override, sopkg/common/malloc/default.goselects themmapallocator.For the guarded allocation path (used when DiskCache promotes data into MemoryCache), a requested cache buffer follows this path:
For a non-power-of-two
N,C = 2^ceil(log2(N)), soN < C < 2N. For example, a700KiBrequest maps a1MiBclass but exposes a slice of length700KiB.However, every relevant cache accounting path charges
N, notC:cacheCapacityGuardedAllocatorcallsEnsureNBytes(..., N)before allocation.fifocache.DataCache.Setpasseslen(value.Bytes())to FIFO. That value drivesused, admission, eviction, the configured capacity guard, and theSHARED-mem cache inusecallback metric.MetricsAllocator.Allocateadds/subtracts its inputsize(N) formemory-cache-inuseandOffHeapInuseGauge; it does not inspect the actual backing allocation.Bytes.Size()andBytes.Bytes()report the visible slice length.Bytes.Slice(length)can reduce that length without reallocating or shrinking the mmap backing object.Therefore none of these gauges exposes the class-rounded mmap capacity. For entries whose current visible length is their original request,
10.22GiBlogical usage admits a live backing-allocation range of[10.22GiB, 20.44GiB), before cache metadata and transient work. BecauseBytes.Slicecan reduce visible length while retaining its backing allocation, the code does not provide a global bound derivable from a point-in-time logical gauge alone.RSS is not identical to mmap capacity: it depends on which pages have been faulted/touched, and retained/free allocator buffers have different residency behavior. Consequently, the
20.44GiBfigure is a mathematical backing-capacity upper bound for the unsliced case, not a claim that QA actually had 20.44GiB of resident cache pages.Why this matters operationally
The current setting means operators may read
memory-cache-inuse <= 6GiB(or12GiB) as “MemoryCache is bounded by 6GiB/12GiB.” That is false for off-heap memory. It makes RSS headroom calculations and OOM protection systematically optimistic, particularly for workloads with many requests just above a power-of-two boundary.This can coexist with the other allocation amplifiers in this issue: lowering the logical cache budget reduces one contributor, but it does not account for or constrain the FK/ALTER allocations, Go heap, other off-heap allocators, or temporary buffers.
Proposed direction
memory-cache-inuse, and off-heap accounting; retain a separate logical-payload metric if it is useful.700KiBvalues cannot be admitted under a capacity that only fits their logical sum but not their two1MiBbacking mappings, and that the reported physical metric remains correct afterBytes.Slice.The current
mainbranch containsmalloc.ClassAllocationSize, but it is not used by the MemoryCache capacity/metric path above; in particular it does not change the deployeda185c23b3behavior.[-][Bug]: 5-second metadata discovery full scan overloads QA MatrixOne and causes CN OOM[/-][+][BUG] MOI IDC (QA) MO OOM[/+]gouhongshen commentedon Aug 7, 2026
Implemented this in draft PR #26783.
The cache now admits and reports
inuseby actual retained backing capacity, rather than logical payload length. It also adds separate cache metrics:type="logical": logical cached payloadtype="backing-overhead": retained backing capacity minus logical payloadFor example, 6 GiB retained backing with 4 GiB payload will report 2 GiB backing overhead. This includes allocator size-class rounding and spare slice capacity, but deliberately excludes allocator free pools, page-level fragmentation, and process RSS. The FileService cache dashboard displays the three memory-cache series together.
Validation includes focused FileService tests, race tests for set/evict/replacement accounting, allocator tests, and native-backed ObjectIO cache-data tests.
gouhongshen commentedon Sep 4, 2026
Automated AI triage
This issue requires human involvement and cannot currently be completed independently by the
automated fix loop.
Reason
MOI/QA owners must validate a known patched deployment under the real discovery workload and supply a reduced current MatrixOne reproduction/profile for any residual. The MOI scheduler cannot be changed by this handler.
Evidence
QA CN OOMKilled/137 is evidenced. The discovery scheduler belongs to MOI, and comments identify several independent allocation contributors. Current MatrixOne history already contains tombstone optimizations #26470/#26476 and backing-capacity accounting #26783; a remaining current code defect is not isolated.
Please use this analysis to provide the missing decision, environment, evidence, or ownership
needed before the issue is returned to the AI candidate pool.
perf(disttae): eliminate per-tombstone scan allocations (matrixorigin…
perf(disttae): index tombstone object ranges (matrixorigin#26476)
perf(disttae): eliminate per-tombstone scan allocations (matrixorigin…
perf(disttae): index tombstone object ranges (matrixorigin#26476)
perf(disttae): eliminate per-tombstone scan allocations (matrixorigin…
perf(disttae): index tombstone object ranges (matrixorigin#26476)
gouhongshen commentedon Oct 15, 2026
Existing-fix audit
Assessment: partially fixed
Fixed evidence
Verified on main 8795f36: #26470 / 217b9e1 removes per-tombstone allocations, covered by TestReusableObjectStatsIterAllocations; #26476 / 3f2b8fc indexes tombstone ranges, covered by TestTombstoneObjectIndexMatchesExhaustiveScan; #26783 / 0676200 accounts cache backing capacity, covered by TestBytesSliceKeepsBackingCapacity and TestMemCacheSeparatesPhysicalAndLogicalBytesMetrics; #26790 / 6481927 removes redundant ALTER/FK rewrites, covered by TestReconcileAlterCopyForeignKeyReferencesOncePerRelation and test/distributed/cases/foreign_key/issue_26465.sql.
Remaining problems
gouhongshen commentedon Oct 15, 2026
Split follow-up for the un-fixed portion: #30293.