Skip to content

fix(core): preserve migration event watermark - #44013

Open
AidenGeunGeun wants to merge 1 commit into
anomalyco:v2from
AidenGeunGeun:ghkim-migration-watermark
Open

fix(core): preserve migration event watermark#44013
AidenGeunGeun wants to merge 1 commit into
anomalyco:v2from
AidenGeunGeun:ghkim-migration-watermark

Conversation

@AidenGeunGeun

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #44012

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Keeps V1 projection rebuilds from lowering the event counter below durable V2 events. It derives the preserved watermark from the remaining event rows, so stale counters from rolled-back projections are still reset.

How did you verify your code works?

  • bun test test/v1-migration.test.ts in packages/core (25 pass)
  • bun typecheck in packages/core
  • repository pre-commit typecheck (33 tasks)

Screenshots / recordings

N/A

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant