Repository navigation
fix: 为归档限额和重建失败补充安全计量诊断 - #296
Draft
lzh2034855417-beep wants to merge 5 commits into
Draft
lzh2034855417-beep wants to merge 5 commits into
lzh2034855417-beep wants to merge 5 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
归档载荷、元数据和路径索引等限制共用
ARCHIVE_LIMIT;原诊断只能给出异常类别和代码位置,无法知道哪个计量触发上限。重建预估及主流程失败也没有调用这条安全诊断记录链,使 #225 一类现场缺少下一步排查依据。本次保留原错误码和合法计量的现有限额,用最终 IOException 类型保存固定计量枚举及 current/increment/maximum。超额数用增加量减剩余额度计算,避免请求总量相加溢出;无效负计量或上限拒绝执行,不伪造超额值。BackupArchive 的三处索引限制明确标记元数据、载荷、路径索引字节数,其他调用为 QUANTITY,不能一律解释成字节。
重建预估和主失败 catch 接入固定事件
REBUILD_PREFLIGHT_FAILURE、REBUILD_FAILURE的私有诊断记录。新增描述器不读取异常正文、路径、URI、文件名或用户内容;记录端普通运行时异常不替换原维护失败,原错误包装和回滚流程保留。验证:
本 PR 只补充诊断证据,关联 #225,暂不关闭整条 issue。不修复其
PARENT_LINK、放弃重建入口、LegacyTarReader 直接抛出的头部限制或其他独立限制;未证明旧发布包现场原因,未构建或安装新 APK。最终常规检查以当前提交的 CI 为准。最终提交
1dc260ef5de52cb3934965e859c1fd4cb448cb3a的 fork Source checks 47034736539 五任务全部成功:源码模式 JVM 4503 项、0 failures/errors/skips;宿主 fast 97 个入口全部 PASS;完整 Java 格式和契约检查通过。文档检查 成功。全部 diff、生成文件、文案精确摘要与失败接线已由独立 AI 会话逐行审查 APPROVE,不代表维护者验收或设备重建通过。