Skip to content

feat(storage): drop the legacy halt_on_failure column#338

Merged
Kiran01bm merged 1 commit into
mainfrom
kiran01bm/drop-halt-on-failure-column
Jun 14, 2026
Merged

feat(storage): drop the legacy halt_on_failure column#338
Kiran01bm merged 1 commit into
mainfrom
kiran01bm/drop-halt-on-failure-column

Conversation

@Kiran01bm

@Kiran01bm Kiran01bm commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

What and Why ?

Patch 2 of the two-step halt_on_failureon_failure migration: removes the now-unused
halt_on_failure column from apply_operations. The earlier patch added the on_failure
enum and moved all config/storage/claim-predicate code onto it while keeping the old column
additively, so in-flight pods running the previous code were unaffected. Nothing reads the
column anymore, so it can be removed.

EnsureSchema reconciles the embedded schema via the Spirit differ on startup, so this
emits the DROP COLUMN automatically — no manual schema step.

Deploy ordering

This must deploy only after the on_failure code is fully rolled out (#317). A pod still
running the previous code would query halt_on_failure; dropping it before then would break
that pod mid-deploy.

Patch 2 of the on_failure migration. #317 moved all code to the
on_failure enum and kept halt_on_failure additively so in-flight old
pods were unaffected; nothing reads the column now, so remove it.
Must deploy only after the on_failure code is fully rolled out.
Copilot AI review requested due to automatic review settings June 14, 2026 07:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes the legacy halt_on_failure column from the MySQL apply_operations table schema as the final step of the halt_on_failureon_failure migration, relying on startup-time schema reconciliation to emit the DROP COLUMN.

Changes:

  • Drop halt_on_failure from pkg/schema/mysql/apply_operations.sql.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Kiran01bm Kiran01bm marked this pull request as ready for review June 14, 2026 07:41
@Kiran01bm Kiran01bm requested review from aparajon and morgo as code owners June 14, 2026 07:41
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@Kiran01bm Kiran01bm merged commit b712ce6 into main Jun 14, 2026
56 of 60 checks passed
@Kiran01bm Kiran01bm deleted the kiran01bm/drop-halt-on-failure-column branch June 14, 2026 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants