Skip to content

#32 must keep the acknowledge fix from #44 (migration 0026 and ack_orchestration_item) #46

Open

Description

@waldemort-auto

Summary

#32 and #44 both add a migration numbered 0026, and both replace ack_orchestration_item:

If #32 merges after #44 without changes, its copy of the function silently reverts the acknowledge fix, and the double processing described in #29 returns. Nothing flags this: CREATE OR REPLACE succeeds, and the migration numbers do not collide once one PR is renumbered.

#32 was also branched before 0025 landed on main, so its 0024 has to be renumbered as well.

What the second PR to merge must do

  1. Renumber its migrations after the latest migration on main.
  2. Build its ack_orchestration_item from the latest definition, not from 0020. If fix: make orchestration lock renewal and acknowledge safe under concurrency #44 merges first, that is fix: make orchestration lock renewal and acknowledge safe under concurrency #44's 0026. Keep Steps 1b and 1c and the Step 12 row-count check from fix: make orchestration lock renewal and acknowledge safe under concurrency #44, together with Record completed_at for ContinuedAsNew executions #32's completed_at change.
  3. Regenerate its NNNN_diff.md with scripts/generate_migration_diff.sh.
  4. Run cargo test --test deadlocks --test orchestration_ack_lease_tests. If the fix was reverted, ack_fetch::fetch_waits_for_an_acknowledge_in_progress and toctou_fetch_takes_over_while_acknowledge_waits fail.

Activity

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