Skip to content

错误(种子):自引用种子数据遇到暂时性写入错误后不会重试 #2804

Closed

Description

@yinlianghui

重现规则

故障注入规则:

第一次写入:抛出 fetch failed
第二次写入:如果被调用,则返回成功

自引用种子数据

输入对象:employee

输入数据(按 CSV 形式展示):

name,manager_id
Alice,
Bob,Alice

执行规则:

  1. 写入 Alice,返回成功。
  2. 将 Bob.manager_id 从自然键 Alice 解析为 id_Alice。
  3. 第一次写入 Bob 时抛出 fetch failed。
  4. 如果第二次写入 Bob,则返回成功。
  5. 记录实际调用次数和最终入库结果。

实际结果:

Alice 写入次数 = 1
Bob 写入次数 = 1
Bob 写入时的 manager_id = id_Alice
已解析引用数 = 1
成功写入 = 1
失败 = 1
已入库 = Alice
未入库 = Bob

Activity

  1. changed the title [-]fix(seed,import): sequential compatibility writes bypass transient retry[/-] [+]bug(seed, import): sequential compatibility writes bypass transient retry[/+] on Jul 14, 2026
  2. changed the title [-]bug(seed, import): sequential compatibility writes bypass transient retry[/-] [+]bug(seed, import): temporary write errors can drop rows in two fallback paths[/+] on Jul 14, 2026
  3. changed the title [-]bug(seed, import): temporary write errors can drop rows in two fallback paths[/-] [+]bug(种子,导入):临时写入错误可能导致两条备用路径中的行被删除[/+] on Jul 16, 2026
  4. changed the title [-]bug(种子,导入):临时写入错误可能导致两条备用路径中的行被删除[/-] [+]错误(种子):自引用种子数据遇到暂时性写入错误后不会重试[/+] on Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions