Skip to content

Split failed messages into offline and online stages - #6162

Merged
rbev merged 8 commits into
warwick/migration-engine-1from
migration-split-error-migration
Nov 27, 2026
Merged

rbev merged 8 commits into
warwick/migration-engine-1from
migration-split-error-migration

Conversation

@rbev

@rbev rbev commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

This pull request updates the migration documentation to clarify how unresolved and retry-issued failed messages are handled during the migration from RavenDB to SQL, and to document new requirements and blockers for a successful migration. The changes improve operator guidance, specify which messages are copied during outage and background phases, and explain how unfinished operations are handled.

Clarifications and updates to migration process:

  • The documentation now explains that unresolved failed messages are copied in the background after ServiceControl opens, and only retry-issued messages and those with retry claims are required during the outage. A large unresolved backlog no longer lengthens the outage, but does extend the background copy. [1] [2]
  • Operators are instructed to let retries, archive, and unarchive operations finish on RavenDB before migration; migration now refuses to proceed if any persisted operation documents remain. Steps to resolve unfinished operations are provided. [1] [2] [3]

Documentation of migration blockers and release readiness:

  • The overview and instructions now explicitly reference unresolved release blockers for the failed-message split, and link to their listing in the documentation. [1] [2]

Detailed category and data handling changes:

  • The number and definition of migration categories are updated: unresolved failed messages are now an optional category copied after opening, and the required category is retry-issued messages and those with retry claims. The handling of group comments and retry claims is clarified, and the refusal to migrate with in-flight operation documents is documented. [1] [2]
  • The documentation now specifies that unresolved failed messages have no window and are always copied after opening, regardless of age. [1] [2]

Behavioral clarifications for data writes:

  • The migration now documents that existing SQL rows always win (no updates are made), and that message bodies are immutable and only written if absent.
  • If the unresolved failed messages category fails, the unresolved backlog remains only in RavenDB.

@rbev
rbev added this pull request to stack #6157 November 19, 2026 04:42
@rbev rbev changed the title Add pre-flight check for incomplete batch operations Split failed messages into offline and online stages Nov 19, 2026
@rbev
rbev requested a review from johnsimons November 20, 2026 01:04
@rbev
rbev marked this pull request as ready for review November 20, 2026 01:04
@warwickschroeder
warwickschroeder removed this pull request from stack #6157 November 20, 2026 04:26
Base automatically changed from migration-engine-8 to warwick/migration-engine-1 November 20, 2026 05:38
@rbev
rbev force-pushed the migration-split-error-migration branch from ad60baf to 9a63050 Compare November 20, 2026 05:54

@warwickschroeder warwickschroeder left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The main issue is that group comments would be cleaned up by the retention sweep if they are left as required and migrated before failed messages

@rbev
rbev merged commit 1650af7 into warwick/migration-engine-1 Nov 27, 2026
107 of 108 checks passed
@rbev
rbev deleted the migration-split-error-migration branch November 27, 2026 05:50
warwickschroeder pushed a commit that referenced this pull request Nov 27, 2026
* Add pre-flight check for incomplete batch operations

* Split error migration into two stages to background migrate the build of the messages

* Tidy up docs

* Move group comments to after failed messages

* Scope unfinished-operation checks to offline migration

* Bring across recent errors in the required window

* Clarify documents and comments

* Rename the mandatory error migration group to be more in line with what it is
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.

2 participants