Skip to content

fix(match): a blocking key that explodes is found by eviction 8 minutes in — no pair budget, and the eviction reason never reaches the task record #1477

Done

Description

@athvin

Found in #558 on er-dev (2026-11-30). On a synthetic 10M corpus with low-cardinality surnames and postal codes, the name_postal blocking rule (substr(family_name,1,4) || '|' || addr_postal) produces about 18k blocks of about 555 records, so roughly 2.8 billion candidate pairs. match at class L then:

  • spilled about 45 GiB a minute;
  • reached 387 GiB of ephemeral storage and 13.4 of 14 GiB of memory;
  • was evicted about 8.5 minutes in: Pod ephemeral local storage usage exceeds the total limit of containers 400Gi.

Two gaps:

  1. No pair budget. Nothing estimates candidate pairs per blocking rule before scoring them, so a config that will never fit is found by eviction, after the node-minutes are spent. A preflight count per rule (sum(n*(n-1)/2) over block sizes) against a configurable budget could refuse it with the offending rule named.
  2. The reason is lost. The task row recorded error_class: resources with exit_code and error_detail both null. The pod status carried reason: Evicted and the message above. A caller can't tell an OOM from a spill eviction from a bad config.

Done when an exploding rule is refused before scoring, naming the rule and its pair count, and an evicted or OOM-killed task records the Kubernetes reason and message.

Activity

  1. added
    followup
    on Nov 30, 2026
  2. athvin commented on Nov 30, 2026

    @athvin
    OwnerAuthor

    The active er-dev/ci API ran the exact #1492 merge image. ECR confirmed the digest-to-commit mapping, and er-server logged that it was listening at 07:37:41 UTC. Both deployment jobs passed.

    The blocking-rule fixture counted 499,999,500,000 candidates from one million records sharing a compound key and rejected it before scoring. A real DuckLake replacement test preserved the 19 prior active pairs. Kubernetes status fixtures exercised the eviction and OOM reason, message and observed exit code, and the PostgreSQL executor check verified persistence. The live eviction that motivated the check is recorded above. Merged checks

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

    followup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions