You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1245fd9
Browse filesBrowse the repository at this point in the historyBrowse files
fix: refuse a mismatched orphan marker, and let the boundaries answer for themselves
Three settings live on two objects and have to agree: the orphan marker
prefix, the DDL timezone and the boundary codec. Passing one of them to a
single collaborator is silent, which is the part worth fixing.
The marker prefix is the one that matters to maintenance: the repository
stamps it on detach, the metadata provider looks for it when discovering
orphans, and a disagreement means nothing detached is ever seen again — no
error, just partitions accumulating. PartitionLifecycleService now refuses
that pair where the two first meet, structurally, the way the calculator/DDL
timezone pair is already refused; a repository or provider that declares no
prefix is trusted and skipped. Both now expose marker_prefix, and
OrphanMarkerAware is the protocol that says so.
The other two are used by is_partition_closed alone, and the object that knows
both is the table's own TimeBoundaries — it chose the calendar, the timezone
and the encoding. It can now be handed over directly,
is_partition_closed(name, boundaries=config.time_boundaries), so reader and
writer cannot disagree; the constructor arguments stay for callers without a
config at hand.
DropPartition also carries the bounds it was planned with. DETACH clears
relpartbound, so by drop time the catalog no longer records where a partition
sat and its name is the only evidence left — which the planner already decodes
to decide the drop. Reporting it costs nothing, puts the period in the plan a
reader sees, and gives an export a typed window without a second guess at the
name.
Refs #27.
0 commit comments