Repository navigation
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
3a1bfb5 to
968a69d
Compare
XuPeng-SH
left a comment
There was a problem hiding this comment.
基于 head 968a69ddcaa9ebb263a316ea7f8df4213498a5f4 和目标分支 9bde0b078363cacfcfef47371426b41a193e487f 评审,结论为 Request Changes。修复持久化对象的块行数契约、回收 worker 严格按代退休,以及复用既有准入器都是有价值的方向;但当前字节边界、事务内删除的可扩展性和普通内存压力处理各有一个可复现的回退,详见行内评论。
#32241 当前没有人工 review 线程。我复核了 #31810 的历史意见:本 PR 对 INSERT 仍按完整对象生成帧,没有把已解决的帧合并问题重新报告。作者记录的导入样本与现有两轮工作负载有参考价值,但样本里的对象统计大小不能代表事务内删除保留的原始 RowID/主键总量;下面的反例使用实际删除准备路径。
设计记录:原有导入准入和按帧落盘设计已在 #31810 评审。本 PR 将元数据所有权从按帧临时存储改为整个 Build 期间内存持有,并改变 legacy 写入的等待/失败策略;这是跨多个生产组件的生命周期和容量重构,触发 design-first review contract。我没有在 PR/相关 issue 中找到这些新设计决策对应的已批准版本;如果已经有独立记录,请链接确切版本和批准,否则请根据以下反例补齐设计评审,再核对实现。这里不预设 PR 之外不存在讨论。
另外发现两项已有问题,并非归因于本 PR 新引入:行内附了同一 publication 重写路径的多块对象数据损坏反例,精确 base 和 head 都复现;已有 #29257 跟踪写入后、注册前失败遗留对象的所有权问题,本地在此 hotfix head 用真实 LocalFS 也复现成功上传后取消、close() 后未注册对象仍存在。后者没有验证后台最终回收,不能仅据此声称永久泄漏;新增的容量拒绝/取消出口应结合该已有生命周期问题评估。
本地验证:go1.26.6、当前源码的 CGo 原生产物;rscthrottler、objectio/ioutil、MultiUpdate、INSERT、publication 的相关定向 normal 测试通过;rscthrottler 和 MultiUpdate 相关定向 race 通过。三条阻塞意见均有单独的精确 head/base 对照,其中真实 coordinator/路径与 LocalFS 的适用范围已在评论中注明;这些不是完整生产负载或全仓测试。当前 UT CI 失败,job 明细没有可用的失败步骤/日志,不能据此判断与 PR 的因果关系。
| mp, | ||
| sinker.putBackOneInMemory, | ||
| sinker.config.bufferBytes, | ||
| math.MaxInt64, |
There was a problem hiding this comment.
[P2] 排序输出关闭字节边界后,无 workspace 的调用方可物化远超目标的单个块
这里以及其他排序分支都向 MergeSortBatches 传入 math.MaxInt64。stagedMaterializedBytes()/完整 W 预约仅作用于 sinker.workspace != nil;普通 CN writer、publication/transfer 等调用方没有该预约。物理暂存大小也不能限制常量或别名展开后的大小。
精确 head 的真实 LocalFS writer 复现:默认 64 MiB 字节目标,输入 8,192 行,排序键为 int32,另一列为重复的 16 KiB 常量值;输入物理大小 245,760 bytes,实际写给文件 writer 的一个块为 134,447,104 bytes。同一输入的 base 代码对照每块最大 32,331,640 bytes。这证明字节控制回退;没有在这个测试中观察或声称 OOM。更宽的合法行会继续放大 block、序列化和压缩分配。base 的中间半块对象统计本身有问题,因此不能简单回滚字节边界作为修复。
请同时满足对象非末块满行数和已有的字节预算,例如在适当的字节边界结束当前对象并交给现有所有者,而不是在同一对象中生成中间半块;对单行超限保留明确例外。覆盖无 workspace、真实写入/读回、常量及别名、正常和超大行,并检查各实际调用方对对象数量的契约。
|
|
||
| if uncommitted != nil && uncommitted.RowCount() > 0 { | ||
| if e := writer.spoolFrame(proc, actionDelete, idx, uint64(uncommitted.RowCount()), objectio.PhysicalAddr_Attr, uncommitted); e != nil { | ||
| if e := writer.appendMetadata(proc, actionDelete, idx, uint64(uncommitted.RowCount()), objectio.PhysicalAddr_Attr, uncommitted); e != nil { |
There was a problem hiding this comment.
[P2] 未提交删除的原始键被累积到 EOF,失去原本的流式容量行为
此处的 uncommitted 是真实 RowID/主键数据,不是 compact ObjectStats。改为 appendMetadata 后,所有窗口的编码内容都留在 metadata[actionDelete],直到整个 Build 结束才逐帧消费;reserveMetadata 的四倍额度随键总量增长。删除或更新同一事务内写入的行时,数据量足够大就会在每个窗口本身都能处理的情况下中止整个语句。PR 中“39 表约 3 MB”的估算是导入对象元数据,不能用于证明这条原始键路径也足够小。
精确 base/head 对照调用真实 prepareDeleteBatches 和真实 memory coordinator:隔离测试将 D 限额设为 256 KiB,连续 128 个窗口,每个窗口 1 个不同的未提交 RowID 和 4 KiB 主键。base 完成并输出全部 128 行;head 仅完成 5 个窗口,随后返回 needs 99328 bytes, available 77728。这是缩小预算的算子级复现,不是生产 SQL 压测;无其他请求持有该预算。
请让这类 raw-delete 输出可以有界地增量退休,复用现有事务/帧存储职责,必要时保留已有的按帧临时存储;compact 对象统计是否保留在内存可独立评估。仍需保证去重、delete-before-insert、失败/取消清理及大事务回滚,并补充跨多个窗口、总原始键大于可用内存的回归。
| if err := context.Cause(proc.Ctx); err != nil { | ||
| return err | ||
| } | ||
| if writer.metadataGranted > 0 { |
There was a problem hiding this comment.
[P2] 任何已保留输出都直接拒绝等待,会把其他请求造成的暂时压力当成自身死锁
metadataGranted > 0 只能说明本 writer 持有输出,不能说明剩余短缺只能由这个 writer 自己释放。新增分支跳过下方已有的可取消 AcquireContext,所以其他任务马上能释放的容量也无法让语句继续。
用真实 memory coordinator 和同步 barrier 对照:D 限额 1 MiB,本 writer 的元数据只持有 1,240 bytes,另一个 owner 占用其余大部分,当前 writer 请求 8,192 bytes。观察到两次非阻塞获取失败后释放另一个 owner:base 的等待成功返回;head 仍立即返回容量错误,而释放后有 1,047,336 bytes 可用。该复现是算子级并发测试,不声称已做线上 SQL 压测。
请区分本语句不可释放的占用与可由其他 owner 独立释放的压力:证明确实只能等待自己时才失败,否则复用现有的可取消等待和 release 通知。测试同时覆盖外部释放、真实自循环、取消和预算回收。
| require.NoError(t, source.Sink(ctx, input)) | ||
| original, err := source.Sync(ctx) | ||
| require.NoError(t, err) | ||
| require.EqualValues(t, 1, original.BlkCnt()) |
There was a problem hiding this comment.
已有严重问题:多块 publication tombstone 重写仍可能产出不可读对象(不是本 PR 新引入)
这个新增测试只写一个源块。另用真实 LocalFS 构造一个合法的两块源对象:第一块 8,192 行、每个键约 2 KiB,第二块 1 行。rewriteNonAppendableTombstoneWithSinker 返回成功,但返回的 stats 只有 8,192 行而原对象有 8,193 行;根据返回位置读取目标块得到 EOF。相同测试在精确 base 9bde0b 和当前 head 均复现。
原因是该调用方要求固定 ObjectName 和单个结果,但 sinker 按阈值多次 Sync 时重用该名字;底层遇到已存在文件会删除并重写,而调用方只返回 persisted[0]。请单独跟踪/修复这个既有数据完整性问题,例如使固定命名的输出具有一个真正的对象所有者,并增加跨 spill 的真实对象读回;不要将它误归因于这次改动。
afeb9db to
5d3550e
Compare
|
Fixed the SCA failure on Ran the actual CI fallback The small correction is folded into the fifth commit; the PR remains five commits on 4.1.6-hotfix. Body evidence is updated and re-review is requested through the API. New-head CI will run after push. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
Reviewed 5d3550e07aee1e29ee03ac185921d2debdae0c2d against 4.1.6-hotfix@ef9256eca2c6436619272927e97f629af41ebd55. Request changes: the latest code addresses the previous connection-reuse, repeated-copy and slow-first-chunk findings, and the earlier metadata-pressure, cleanup and object-layout comments have targeted fixes. The new final-buffer allocation nevertheless creates an additional memory-admission regression on ordinary publication objects; see the inline finding.
I reviewed the retained ownership and cancellation chain from accepted chunk through query cleanup and completion, the ordered copy into the final buffer, metadata migration and replay, and the single-owner tombstone rewrite. Seven current-head publication lifecycle/geometry/connection-reuse tests passed under -race. The new allocation counterexample uses the actual fetch function and a controlled worker; it compares the candidate against a prior 4.1.6 base with identical relevant fetch, worker, mock and module sources. It does not claim a production RSS measurement or an observed OOM.
The existing per-frame metadata temporary file still depends on the deployment's temporary-volume capacity; that cumulative-storage concern also exists on the base and is not attributed here as a new regression. CI failures were not considered.
| return nil, err | ||
| } | ||
| } | ||
| objectContent := make([]byte, int(meta.TotalSize)) |
There was a problem hiding this comment.
[P2] Admit the complete object buffer before allocating it
This allocation runs immediately after the metadata reply, before even submitting the first data chunk. The existing publicationFetchMemoryKey reservation is supplied only for the non-appendable tombstone rewrite; appendable objects and ordinary non-appendable data objects reach this line without a full-object memory owner. The chunk semaphore limits executing chunk jobs, not these waiting whole-object allocations. FilterObjectWorkerThread defaults to 1,000, while the writer permits objects up to 3 GiB, so concurrent slow/rejected downloads can allocate many full-sized buffers before any chunk progresses and create substantial unadmitted heap pressure.
I exercised the actual fetch entry point with a worker that completes the metadata request for a valid 64-MiB object and blocks the first chunk submission. Before releasing the worker, the candidate's runtime.MemStats.TotalAlloc increased by 67,113,880 bytes; the same controlled probe on prior 4.1.6 source, whose relevant fetch/worker code matches this PR's base, increased by 4,608 bytes. This is a component-level allocation comparison, not an observed RSS peak or OOM.
Please place the final buffer under an existing bounded, cancellable owner for all object paths, or use an existing bounded incremental storage/streaming path. Preserve the single-copy and rolling-progress properties, and keep accepted jobs and the buffer owned until completion or cancel-and-drain. Add a test with multiple blocked fetches and a small shared budget, plus cancellation/refund and ordinary data-object controls.
|
Addressed this review together with the same feature in #32065, at The ordinary-object preallocation P2 is fixed at the root owner: all object kinds reserve source memory before fetching data and retain it through the consuming write. This also applies the same ownership correction to 4.2. Both branches now use the same metadata-progress and source-buffer ownership contracts. Legacy replay charges only its live decoded frame. Real one-object-budget barriers verify that another object cannot start fetching while the first buffer is still being written, and that cancellation cannot refund a live chunk/write. A size-growth denial releases the entire old attempt before re-admission. Shared regression cases cover both releases; the native hash/spill and job implementations remain release-specific. Normal/race owning suites pass (939 top-level / 1231 named cases), affected lifecycle tests pass 100 separate exact-name race repetitions, pinned latest-main SCA passes, and err-check/licenses/native build pass. Old-behavior production overlays compile and fail the new runtime oracles. The body/design now describe the current policy and retain historical workload identities. New-head CI is pending; re-review is requested through the review-request API. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
基于 head 08da102012dfd64b483e956f9cd9ec68cd67b7c3、目标分支 4.1.6-hotfix@ef9256eca2c6436619272927e97f629af41ebd55 复审,结论为 Request Changes。新增的 legacy 元数据回放准入和 publication 对象准入都引入了缺少生命周期闭环的等待:前者在分区写入时可能等待本语句自己持有的额度,后者等待期间不再感知同步保护过期。详见两条行内评论。
上轮普通对象预分配问题已改为在分配前取得共享预约,并持续持有至写入结束;先前连接复用、重复拷贝、慢分片进度、原始删除键流式处理和固定文件多次覆盖等问题均有针对性修改。GitHub 上的历史讨论线程仍是 unresolved;这里区分线程状态和代码复核结论。
在精确 head 上,本地运行 publication 和 multi_update 的准入、资源退休、分片进度及元数据回放定向测试,均通过 -race。另外用真实协调器、删除帧和分区写入器复现回放自等待,并在上一提交 5d3550e 对照通过;同步保护过期反例也在精确 head 上复现。这些是算子/组件级验证,不声称完成了端到端 SQL 或负载测试。按要求未将 CI 失败纳入结论。
| if err != nil { | ||
| return err | ||
| } | ||
| if err := rscthrottler.AcquireContext(proc.Ctx, writer.memController.throttler, capacity); err != nil { |
There was a problem hiding this comment.
[P1] 分区回放不能等待尚未轮到执行的同语句写入器释放 D
对于没有 ImportMemory 的 partitioned MultiUpdate,其他分区的 writer 可以在 Build 后仍持有 source/future D 额度。Eval 通过 PartitionMultiUpdate.getFlushableS3Writer 一次处理一个 writer;当前 writer 在这里同步等待 frame 额度时,后面的 writer 只有等当前 update_s3 返回、被取出并 flush/cleanup 才能归还它的额度。因此即使整个语句的所有权在一个进程内,也会形成自等待,而不是独立 owner 的暂时压力。普通的多分区 DELETE/UPDATE 在同一事务中既有未提交行又有已提交行时可进入这个路径。
我用真实 prepareDeleteBatches 生成未提交行的 DELETE 帧,用真实 append 让另一分区持有已提交删除的 D,再调用真实 update_s3 和 memory coordinator:D 上限 1 MiB,待回放帧申请 810,076 bytes,另一分区持有 252,496 bytes,可用 796,080 bytes。当前 head 卡在本行,另一分区仍在待处理 map 中;取消后才返回。相同反例在上一提交 5d3550e 完成回放。测试级别是算子/协调器,不是完整 SQL。
请让回放额度的生命周期与所有分区 writer 的现有执行顺序闭合,避免等待只能由当前语句后续步骤释放的额度,同时保留对其他独立 owner 的可取消等待。建议同时覆盖真实多分区、自身持有额度和独立压力释放:现有 TestLegacyMetadataWaitsForIndependentRelease 测的是 acquireMemory,未覆盖本行的 frame 准入。
| } | ||
| } | ||
| peak = max(int64(1), peak, minimum) | ||
| ticket, err := owner.ReserveWorkingSetCandidatesUntilFit(ctx, []rscthrottler.WorkingSetSpec{{UnitBytes: 1, Inputs: []rscthrottler.InputSlotSpec{{Name: "publication-object", Count: 1, Bytes: peak}}}}) |
There was a problem hiding this comment.
[P2] 对象准入等待期间需要响应同步保护过期
FilterObject 在调用此处前检查 ttlChecker,但 ReserveWorkingSetCandidatesUntilFit 只等待内存或传入 context 的取消,不再检查或接收同步保护失效通知。生产调用从 publication worker 的长期 context 进入 iteration;keepalive 连续失败、保护 TTL 已经过期时,并不会因此取消该 context。如果内存仍被其他 owner 占用,filter job 会继续留在 FIFO 中,iteration 无法及时返回 ErrSyncProtectionTTLExpired 并回滚/清理,后面的准入也可能被这个已经失效的请求挡住。
用真实 coordinator 和 FilterObject 的 barrier 反例:保留其他 owner 的额度,在本次 object reservation 已进入后把 TTL checker 从 true 切为 false。等待的 200 ms 内 checker 次数保持 2,job 没有返回;释放另一 owner 后才继续检查并返回 ErrSyncProtectionTTLExpired。源码中的等待没有 TTL 唤醒,因此并不以这个观察窗口为上限。
请把现有同步保护失效信号接入等待/iteration 取消闭环,使过期任务及时退出,并保留有效续期和外部内存压力下的正常等待;补充等待期间过期与成功续期的测试。
|
Fixed both new waiting-lifecycle findings in both release branches; head
Validation: 850 owning top-level tests / 1031 named cases pass normally and with race; partition retirement, independent frame waiting and TTL waiting each pass 100 separate exact-name race repetitions. Both old-behavior overlays compile and fail the new oracles. Fresh native two-partition SQL smoke passes 20 statements per release, including mixed committed/uncommitted deletion, rollback and commit; reduced-budget hang proof is component-level. Pinned latest-main SCA ( |
Keep complete non-final blocks and retire recovery workers before restart. Replace transaction-metadata temporary files with compact in-memory output, charged cumulatively to the existing input/output reservation. Preserve complete object frames, delete-before-insert order, cancellation and reuse.
Reserve from the existing CN memory owner before fetching and materializing a tombstone. Globally merge remapped RowIDs through one file owner and one final Sync, preserving full intermediate blocks and the fixed object name.
|
CI correction pushed at The ten CCPR integration failures had a concrete common cause: publication object fetching requires CN memory admission, but the owner was bound only by ExecuteIteration, while direct ApplyObjects calls bypassed it and the engine test runtime never registered the coordinator. ApplyObjects now resolves the existing coordinator through Engine.GetService and keeps explicitly supplied owners. The test runtime installs the real coordinator; absent admission still fails before allocation. No admission bypass or new setting was added. Validation: the original TestApplyObjects failure was reproduced on each previous head. All ten formerly failing engine tests now pass in normal, race and atomic-coverage modes on both variants. Publication package normal/race passes; the new runtime-owner / explicit-owner / missing-owner controls pass 100 exact-name race repetitions. Local pinned SCA against latest upstream main (including tests/reverse dependencies), err-check, license checks and native service builds pass. Both PRs keep five commits and their respective release baselines. Fresh GitHub CI is pending. The unrelated password validation BVT failures were rerun without changing the checked commit or password code: job 129674069349 passed at |
XuPeng-SH
left a comment
There was a problem hiding this comment.
基于 380bbf083336d49576a6c9744f1d10d2d90e0267 和目标 4.1.6-hotfix@a5a8ed45fcfcb92d8b78de729b154e6328bfacbf 复审,结论为 Request Changes。分区 replay 的原始自等待反例、独立压力释放、同步保护到期取消、续期延长及直接 Apply 的 owner 获取都有针对性修复和测试;但新的 EOF 全分区预刷写在部分失败时会丢失已写对象的清理归属,同步保护观察器也没有覆盖期限缩短,详见行内评论。
历史 review 的其他问题已结合未变更代码和前次证据复核:普通对象预分配、连接复用、滚动分片、原始删除键流式处理、对象布局、失败退休和压力下回退均有针对性处理。GitHub 上历史线程仍未标记 resolved,线程状态不等同于代码结论。上轮同步保护到期问题在固定期限和延长期限下已处理,但期限缩短时仍可复现。
精确 head 上本地运行 publication 和 multi_update 的相关定向 -race 测试通过。另用真实 writer、磁盘文件服务和注入的第二次写入失败,对照精确目标 base 复现了未交接对象的失败路径;用真实对象准入、worker TTL 与 synctest 虚拟时钟复现了期限缩短后仍等待的路径。这些是组件/算子级反例,不声称已做端到端 SQL 或完整事务回滚测试。按要求未将 CI 状态纳入结论。
| // before any frame can wait; later partitions cannot run during Eval. | ||
| if proc.Base.ImportMemory == nil { | ||
| for _, writer := range op.writers { | ||
| if err := writer.flushTail(proc, op.raw.OpAnalyzer); err != nil { |
There was a problem hiding this comment.
[P2] 预刷写部分成功后,已写对象没有交接给回滚所有者
这段循环在第一个元数据帧返回给下游 UpdateFlushS3Info 之前,依次 flushTail 所有分区。如果分区 A 已经成功写出 tombstone/data 对象并把 stats 放到自己的临时帧里,分区 B 随后写失败或被取消,直接返回错误,不会执行下面的 op.raw.Call。A 的帧从未交给下游的 source.Delete/source.Write,因此对象没有登记到事务的 writes;freePartitionWriters 关闭临时帧和 sinker 也不会删除该对象,而事务回滚的 gcObjsByIdxRange 只枚举已登记的 txn.writes。
我用两个真实 partition writer、磁盘文件服务和同步写入故障复现:第一对象实际写入成功,第二次写入返回错误;当前 head 的首次 op.Call 返回错误且没有输出 batch,调用 op.Free 后第一个对象仍可 StatFile。精确目标 base 的同一反例,首次调用先返回一行第一个分区的元数据,第二次写入尚未发生。反例是算子/文件服务级;事务登记和回滚范围由 updateFlushS3Info、txnTable.Delete 和 Transaction.Rollback 源码确认,不声称跑过完整 SQL 回滚或证明全局后台 GC 的行为。
请让所有成功预刷写对象在失败/取消时仍有明确的清理所有者,并在成功交给事务时正确转移归属;覆盖前一分区成功、后一分区失败/取消及成功交接,验证文件清理,而不仅检查 writer 的内存、句柄与 spool。避免为此重复建立事务已有的对象状态。
There was a problem hiding this comment.
Fixed in da633c5 (paired 4.2: 6adfea1). Existing pending block-info/sinkers and private metadata frames now own successfully persisted preflush files until metadata handoff; compact short names are in the same spool frame, with no growing object registry. Partial/failed decode cannot advance the handoff cursor. Free/Reset remove unread files under one shared cleanup deadline independent of query cancellation. Real filesystem regressions cover successful first upload followed by failure/cancellation, Reset, partial consumer handoff, malformed decode, and both INSERT/DELETE stats formats. The old preflush behavior fails the late-failure/cancellation/partial-handoff controls; normal/race owning suites and 100 partition repetitions pass on both releases.
| cancel(ErrSyncProtectionTTLExpired) | ||
| return | ||
| } | ||
| timer.Reset(time.Duration(expires - now)) |
There was a problem hiding this comment.
[P2] 保护期限缩短时,观察器仍睡到旧期限
这里仅在当前 timer 触发时才读取 GetSyncProtectionTTL。因此它能处理期限延长,却无法及时感知期限提前:如果 timer 原定 T+10 到期,随后 worker 把 TTL 更新为 T+3,T+3 已经失效时,等待对象准入的 context 仍不会取消,直到 T+10 的旧 timer 触发。这样上轮“TTL 过期后释放等待和事务”的问题仍存在于期限缩短的情况。
这并非只能由测试直接修改字段触发:renewAllSyncProtections 在处理整个 job 列表前捕获一次 newTTLExpireTS,而 ExecuteIteration 的初始显式 RenewSyncProtection 可在其后完成并注册一个更晚的期限。若后台批次稍后处理该 job,它会用较早捕获的期限调用 TN 并写回当前 entry;TN 的 SyncProtectionManager.RenewSyncProtection 直接覆盖 ValidTS,并不保证单调延长。并发调度或前面其他 job 的慢 RPC 可以产生此顺序。
我用真实 FilterObject、内存协调器和 worker,在 synctest 中先设置 10 秒期限,等待对象准入后模拟该生产写回将期限缩为 3 秒:虚拟时钟到 4 秒时 worker 报告已过期,但 context 未取消且任务仍在准入中;原期限到达后才退出。现有 renew 测试只覆盖期限变长。请通过现有 TTL 所有者通知观察器更早的变化,或同时保证 TN 和 worker 的期限不能回退;补充缩短/并发续期以及已有延长、取消的测试。
There was a problem hiding this comment.
Fixed in da633c5 (paired 4.2: 6adfea1). The worker returns TTL plus its change channel under one lock; registration, explicit renewal, successful background-renewal writeback and unregister notify the same observer. A shortening wakes/rearms the existing timer immediately, and stale replies cannot update a replacement registration. Actual worker/coordinator/FilterObject virtual-time tests cover shortening, extension, removal, expiry and parent cancellation, plus late renewal generations. The original observer fails shortening/removal controls; fixed normal/race and 100-repeat TTL/renewal tests pass. No TN/DN protocol or policy change is required.
|
Updated to The repeated review findings exposed ownership/termination boundaries missed when introducing preflush and the protection observer. The fix now covers their full local transitions:
Final validation: owning Scope versus release base: 18 production Go files, +1503/−562; this correction touches 8 (+342/−51). Shared DML/publication paths are affected; this is not LOAD-only. The 4.2 total also includes the original combined import-memory port. No planner/allocator hot-path/merge-policy change is added here. Five commits are retained per branch. The body/design describe the final behavior and retain historical workload measurements with their original revisions. These SQL/component checks do not claim final-head full-workload throughput or an end-to-end low-memory SQL reproduction. New CI and reviewer decisions are pending; API re-review requests follow this update. |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: da633c5deb873932dfd728ad04a30a3886e54561
Assessment: approve
The prior file-ownership and TTL-shortening concerns are resolved. The design reuses the existing memory coordinator and LOCAL spool; added watermarks and notifications serve concrete cleanup and cancellation requirements. No actionable findings remain.
Model: gpt-6.1-sol / max
Session: 01a1a004-9884-72c0-ad39-f096c4209c4a · slot 1 · generation 0
Validation:
-
Reviewed all 37 changed files, 37 discussion entries, three linked issues, and affected owners/consumers.
-
Local isolation preflight, git diff --check and review-integrity audit passed. Receipts and retained logs are indexed in validation-evidence.json.
-
The frozen-head CI snapshot reports successful build, UT/coverage, SCA, and Proxy/pessimistic multi-CN BVT.
-
Reused supplied author/prior-review evidence within its recorded scope. discussion-assessment.json accounts for every discussion key.
Limitations:
-
No local Go/race/SQL or performance runs; author-reported executions were not independently reproduced.
-
Historical OOM/Amway results do not establish final-head throughput or hard RSS guarantees. Broader preexisting upload/crash cleanup remains outside this fix.
What type of PR is this?
Which issue(s) this PR fixes:
Related to #26992 and #32146. Follow up #31166 and #31810.
What this PR does / why we need it:
Preserve bounded import memory, persisted object layout and publication progress. Head
da633c5deb873932dfd728ad04a30a3886e54561is based on4.1.6-hotfix@a5a8ed45fcfcb92d8b78de729b154e6328bfacbf, with five commits. Maintained design. Paired release PR: #32065.4.1 retains its cancellable legacy D policy. It has no native statement/CN spill-disk admission API; temporary-volume capacity remains a deployment requirement. This PR does not backport the 4.2 spill-budget framework.
Impact: 18 production Go files versus the release base; this correction touches 8. Shared writer/admission and publication paths include ordinary DML/publication; this is not a LOAD-only change. This correction adds no planner, allocator hot-path or merge-policy change.
Validation:
insert,multi_update, andcolexecowning packages pass normal and race modes (266 named tests each). Unchanged publication/ioutil code retains the full owning-package normal/race evidence from this correction. Native binaries embed this final commit and pass 20 SQL statements each: two partitions, 36,000 committed rows plus same-transaction rows, exact counts/sums, DELETE, rollback/commit and teardown. Test services are stopped and generated data is removed. This is a functional control, not a SQL low-memory failure reproduction or a current-head throughput result.main@00da05219fb8dce0266de4efa7c4bbfac06491de. Its incremental selector selects./..., including tests and reverse dependencies; Go 1.26.4, CGO and built thirdparties artifacts are used. Repository-pinned molint222a0b8adf07and golangci-lint v2.6.2 pass; lint reports zero issues:License/header checks and native builds pass. New GitHub CI and re-review are pending.
Historical acceptance keeps its original revision:
968a69dcompleted two continuous Amway rounds /78 imports (39 tables), 22-GiB cap, RSS HWM 7.789 GiB and cgroup peak 18.641 GiB. Earlier five-round acceptance is a separate revision. No current-head full-workload performance claim is made.