Repository navigation
Backport #32350 to 2.0: emit ChangeEvents for bulk entity updates - #32535
Conversation
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
✅ Playwright Results — workflow succeededValidated commit ✅ 555 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 55m 23s ⏱️ Max setup 3m 0s · max shard execution 17m 49s · max shard-job elapsed before upload 22m 22s · reporting 4s 🌐 208.47 requests/attempt · 2.82 app boots/UI scenario · 5.71% common-shard skew Optimization targets still in progress:
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
Parallel incident tests must not share global search results, and the lineage mock must preserve table indexing policy across the JVM. Refs #32535
Code Review ✅ ApprovedBackport of #32350 to 2.0: restores OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes:
Backport of #32350 (
Fixes #32092) to2.0.PUT /v1/{collection}/bulkpersisted entity updates and version history but wrote nochange_eventrow, so
Get Schema Changesalerts never fired on metadata ingestion, and no ingestion-driven updatewas auditable.
EntityUpdater.updateWithDeferredStore()(the bulk path) ranupdateInternal()withoutthe
captureIncrementalFromCurrentChange()step its three sibling entry points run, leavingincrementalChangeDescriptionnull, whichincrementalFieldsChanged()reads as "nothing changed".Every bulk update was therefore classified
ENTITY_NO_CHANGEand dropped bybuildChangeEventJsonForBulkOperation.Full analysis, blast radius and manual-test tables are in #32350.
This did not reach
2.0automatically: #32350 merged without theTo releaselabel, and thecherry-pick workflow only fires on the
pull_request_target: closedevent, which has passed.Type of change:
High-level design:
Straight
git cherry-pick -x a3e5f5f4b030c818f8a52b0bb99eab46a94d13e3. It applies cleanly on2.0with no conflicts and no adaptation: the added/removed lines are byte-identical to the
maincommit,and
BulkChangeEventIT.javais byte-identical to the file onmain.openmetadata-integration-testsalready carries the
BulkApihelper the test needs, unchanged frommain.The companion 1.13 backport is #32536.
Tests:
Backend integration tests
BulkChangeEventIT(6 cases), brought over unchanged.Ingestion integration tests
Playwright (UI) tests
Manual testing performed
Built and ran locally on this branch, all 11 modules from source in-reactor so the test exercises
this code and not a cached artifact:
spotless:checkonopenmetadata-serviceandopenmetadata-integration-testsis green.The behavioural numbers (bulk 0 -> 1 events, alert
totalEventsCount1 -> 2) and the reverted-fixcontrol run are in #32350; the production code here is byte-identical to it.
Notes for reviewers
Carried over from #32350 and still applicable on
2.0:change_eventrows. This restores pre-1.13 volume for ingestion updates, bounded bythe existing
DataRetentionapp. Customers who created alerts while the bug was live have not seenthis traffic before. Worth a release note.
persistBulkUpdaters(), and sharesupdateWithDeferredStore()with this fix.Checklist:
On
skip-pr-checks: a PR whose base is not the default branch cannot create GitHub's nativeclosingIssuesReferenceslink, so the metadata gate has no way to see the linked issue and can never be satisfied here. The issue is #32092, already closed by #32350.