Repository navigation
Conversation
…grationUtil updateWorkflowDefinitions() caught and logged each createOrUpdate() failure then returned normally, so MigrationWorkflow recorded v1.7.1 as complete and left that workflow's config = null permanently — the NPE-on-edit/redeploy failure mode this PR fixes. Collect per-definition failures and throw after the loop (best-effort for the remaining definitions), so the next migrate/startup retries the backfill. Add a focused MigrationUtilTest exercising the real backfill against a WorkflowDefinitionRepository boundary mock.
…in MainWorkflow A failed migration step must not block upgrades or startup. A deterministic per-definition failure would fail every migrate run, so rethrowing turns one un-editable legacy workflow into a hard-blocked upgrade. Restore the original log-and-skip behaviour in the v1.7.1 migration and MigrationUtil. The MainWorkflow null-config guard alone removes the NPE on edit/redeploy for legacy definitions the backfill skipped, so it is the whole fix.
…config-backfill-failu-be7ece
yan-3005
approved these changes
Nov 19, 2026
sonika-shah
approved these changes
Nov 19, 2026
yan-3005
deleted the
detail/bug-fix/fixes-38020-propagate-v1-7-1-config-backfill-failu-be7ece
branch
November 19, 2026 13:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Detail bug report: View on Detail
Describe your changes:
Fixes #38020
Pre-1.7.1
WorkflowDefinitionrows that the v1.7.1 backfill skipped are stored withconfig = null. The node builders dereferenceconfig.getStoreStageStatus(), so any PUT/PATCH/redeploy of such a workflow threw aNullPointerExceptionfrom BPMN build and returned a 500, leaving the workflow un-editable.MainWorkflowis the single chokepoint for every BPMN build path (requireDeployable,WorkflowHandler.deploy,WorkflowHandler.redeploy). It now builds nodes with the stored config, or withnew WorkflowConfiguration()(storeStageStatus=false, the same default the backfill writes) when the stored config is null. The legacy definition builds, and the next save repairs it.Null config is only reachable from legacy rows:
WorkflowDefinitionMapperalways sets a config on create.Why the migration is unchanged
An earlier revision of this PR made the v1.7.1 migration rethrow backfill failures so the version would be retried. That was dropped on purpose: migrations log and skip failures and must not block an upgrade or app start. A deterministic per-definition failure would fail every
migraterun and hard-block the upgrade, which is worse than one un-editable workflow, and theMainWorkflowguard already removes that consequence.Type of change:
Tests:
Unit tests
MainWorkflowTest.nullConfigBuildsWithoutNullPointerException: a definition withconfig = nullbuilds its start and end nodes without an NPE.mvn test -pl openmetadata-service -Dtest=MainWorkflowTest→Tests run: 2, Failures: 0, Errors: 0, Skipped: 0Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.

Confidence Score: 5/5
The PR appears safe to merge; no new blocking issues were found.Summary
Adds a default configuration when an older workflow has no saved configuration, allowing its BPMN model to build.
No new actionable issues found. Tests were not run during this review.
Reviews (5) · Last reviewed commit: "Merge branch 'main' into detail/bug-fix/..." · Reviewed by Greptile