Repository navigation
Conversation
✅ PR checks passedThe linked issue has a description and all required Shipping project fields set. Thanks! |
🔄 Playwright impact map auto-refreshedThis PR touched specs or UI source that changed the source→spec routing map. I regenerated What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit: python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit # or a separate commit |
✅ Generated Sources Auto-UpdatedThe generated TypeScript types ( |
| // Alerts the previous release stopped sending, because it could not build one of their | ||
| // destinations, send again from this release; they start from the upgrade, not their backlog. | ||
| skipBacklogOfAlertsThePreviousReleaseCouldNotSend(collectionDAO); |
There was a problem hiding this comment.
⚠️ Bug: Backlog skip isn't wrapped in runOnce, so a rerun drops events again
Nothing stops skipBacklogOfAlertsThePreviousReleaseCouldNotSend from running more than once. DataMigrationStep's javadoc says a v210 data migration runs again whenever its fingerprint changes, and any later change to a helper in utils.v210 changes it. A stored destination never changes, so on a rerun whyThePreviousReleaseCouldNotSend flags the same alerts again. By then the new release has been delivering those alerts, so AlertRecord.skipBacklog would silently drop every event they had not sent yet. The PR description says the backlog is skipped "once", but nothing here enforces it. Give the step a STEP_NAME and call it through runOnce, as the two steps just above it already do.
Run the backlog skip once per version (do the same in the MySQL Migration, and add public static final String STEP_NAME = "alert-backlog-skip"; to AlertBacklogMigration).:
runOnce(
migrationDAO,
getVersion(),
AlertBacklogMigration.STEP_NAME,
() -> skipBacklogOfAlertsThePreviousReleaseCouldNotSend(collectionDAO));
Was this helpful? React with 👍 / 👎
🚦 Removed from the merge queue —
|
🚦 Removed from the merge queue —
|
…channel is grouped from
…stopping flag and recipient lookups
…ed once and health per destination
…, fails the event with its reason
🚦 Removed from the merge queue —
|
Code Review
|
| Compact |
|
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source
|
|



Fixes #33118.
What this pull request implements
channelfield; without it, the channel of its type serves it. Naming a channel the server has not registered is refused.What was wrong before
Adding a channel meant editing more than twenty places that switched on the destination type. Validation ran only on POST and PUT through the REST resource, so a PATCH could store a destination nothing can deliver to.
Design
Channelis registered under an id and made of four parts: a formatter, built once and shared by every caller, anAddressDirectory(where a user, a team or a destination is reached),ConfigRulesand aTransport.Channelsholds every channel by id, filled from eachChannelProviderthe service loader finds on the classpath.BuiltInChannelsregisters the channels OpenMetadata ships, each under its destination type, and is the only place that names a destination type.HttpWebhookTransportowns the HTTP clients: one per pair of timeouts, shared, bounded and closed at shutdown.ChannelResolutionpicks the channel: the one thechannelfield names, otherwise the one registered for the type. A named channel that is not registered is never replaced by the type's. Every lookup of a destination's channel goes through it.DestinationConfigis the one reader of a destination's configuration: strict when submitted (a 400 names the field), as saved when stored. Built-in channels read once and hand the typed configuration to their publishers.UnservedDestinationstands in for a destination whose channel is not registered, or whose stored configuration the channel cannot use. It never joins its channel's other destinations and costs the alert nothing else; an event only such destinations had counts as failed, with the reason it was not attempted.AlertBacklogMigration(2.1.0) skips, once, the backlog of every enabled alert the previous release could not build.DestinationValidationchecks a new or changed destination with its channel's rules on every path that saves an alert, and leaves a stored one alone.What users notice
How it was tested
The alerting unit tests (73 classes, 532 tests), the alert integration tests (10 classes, 82 tests, including
AlertBacklogMigrationIT) and the existing alert integration tests (565 tests) pass on MySQL and on PostgreSQL.