Alerting and event delivery
The alerting and event delivery system turns stored event subscriptions into scheduled work. It reads change events, applies subscription rules, resolves the people or systems that must receive each event, sends through the selected channels, and records progress and outcomes for later status and diagnosis.
Related pages:
- Metadata platform service
- Service API resources
- Metadata entity lifecycle
- Platform security governance
- Platform configuration management
- Governance workflow automation
Alerting model
An event subscription is the control point for an alert. It defines what the alert watches, which rules and triggers apply, whether it is enabled, where it sends, and how often it checks for new work. Notification alerts deliver selected entity events. Observability alerts add conditions that represent a signal such as a test or pipeline state. The same model also supports consumers that produce their own work instead of reading the change-event stream. (See openmetadata-service/…/AlertUtil.java• L166-186 and openmetadata-service/…/AbstractEventConsumer.java• L328-345.)
Successful write requests are the entry point for the server event stream. The response filter ignores failed or non-auditable requests, skips excluded endpoints, and runs configured event handlers asynchronously. Those handlers produce the events that change-event consumers later evaluate for alert delivery. (See openmetadata-service/…/EventFilter.java• L35-40 and openmetadata-service/…/EventFilter.java• L82-100.)
The server loads the alert catalog before it starts the alert service. The catalog describes the event sources and conditions that users can choose. Saved definitions remain buildable when an older source or rule is no longer offered to new alerts. This keeps existing alert meaning stable while the available choices can change. (See openmetadata-service/…/AlertCatalog.java• L24-31 and openmetadata-service/…/EventsSubscriptionRegistry.java• L32-46.)
Scheduled alert work
The event subscription scheduler gives each enabled subscription a repeating job. It stores the job in the shared scheduler so multiple server instances can coordinate the work. The stored subscription remains the authority, so a disabled or deleted alert does not continue to send events. (See openmetadata-service/…/EventSubscriptionScheduler.java• L111-143 and openmetadata-service/…/AlertTick.java• L17-39.)
Changes to a subscription converge to the scheduler after the database change commits. Startup also converges every stored alert. A separate reconcile pass repairs missing jobs, bad triggers, missing position records, and leftovers from deleted alerts. This makes scheduling recoverable after a restart or a partial save. (See openmetadata-service/…/EventSubscriptionRepository.java• L82-123, openmetadata-service/…/EventSubscriptionResource.java• L150-174, and openmetadata-service/…/AlertReconciler.java• L28-37.)
The scheduler reports both schedule state and stream position. Engineers can therefore distinguish a job that is not firing from an alert that is firing but has unread events. (See openmetadata-service/…/EventSubscriptionScheduler.java• L200-219.)
This diagram shows how a stored subscription becomes a scheduled delivery run.
flowchart LR
S[Stored event subscription] --> C[Job convergence]
C --> J[Repeating alert job]
J --> T[Alert tick]
T --> L[Open alert record]
L --> P[Read new change events]
P --> F[Evaluate rules]
F --> D[Resolve and send]
D --> R[Record position and outcomes]
R --> J
X[Reconcile pass] --> C
Subscription records
The alert record keeps the position from which the next tick reads, the time boundary used to avoid old alert executions, delivery counters, destination health, and failure details. A new scheduled alert starts at the current change-event position. This prevents a newly created notification from replaying the existing backlog unless its consumer has a different stream need. The record plane can read destination health for many scheduled alerts in bounded batches. Alerts without a position record have no active health result. (See openmetadata-service/…/AlertRecord.java• L28-46 and openmetadata-service/…/AlertRecord.java• L49-95.)
References: openmetadata-service/…/AlertRecord.java• L28-41 openmetadata-service/…/AlertRecord.java• L49-75 openmetadata-service/…/AlertRecord.java• L85-95
Rule evaluation
Each tick reads a bounded set of change events and tests each event against the subscription. The evaluation first checks whether the event belongs to a watched source. It then applies filters and, for observability alerts, trigger actions. Events outside the source or rule scope do not enter delivery. Feed events use the parent entity as their scope, so a comment alert can match the entity that the comment belongs to. (See openmetadata-service/…/AlertUtil.java• L273-319, openmetadata-service/…/AlertUtil.java• L349-360, and openmetadata-service/…/AlertsRuleEvaluator.java• L758-855.)
Rules can inspect event type, entity identity, owners, domains, field changes, pipeline state, test results, and discussion mentions. The evaluator can use the event payload and a current entity view when the payload does not carry enough context. For delete events, it keeps the event subject available when possible while limiting owner and domain lookups to live targets. A missing subject or owner does not abort the batch. It treats a failed evaluation as an excluded event and records the problem instead of allowing one bad event to stop the rest of the batch. (See openmetadata-service/…/AlertsRuleEvaluator.java• L64-69, openmetadata-service/…/AlertsRuleEvaluator.java• L77-95, openmetadata-service/…/AlertsRuleEvaluator.java• L528-555, openmetadata-service/…/AlertsRuleEvaluator.java• L758-855, and openmetadata-service/…/AlertUtil.java• L299-334.)
Alerting subscriptions use their starting time as a watermark for old pipeline executions. If the system cannot determine the execution time, it delivers the event rather than suppressing it. Other subscription kinds can consume the full stream when their purpose requires it. (See openmetadata-service/…/AlertUtil.java• L336-347 and openmetadata-service/…/AlertUtil.java• L395-423.)
Change-event consumption
The consumer advances through contiguous change-event positions. It waits briefly when a lower position is not yet visible, because a higher position may have committed first. If the gap does not resolve, it steps over the gap so one incomplete write cannot stop the alert forever. (See openmetadata-service/…/AbstractEventConsumer.java• L147-226.)
The tick can process a batch or isolate events one at a time when it needs stronger progress guarantees. It records an event failure and advances when repeated interruption would otherwise cause the same event to block the subscription. A time budget can stop a long tick, which causes the scheduler to run it again without waiting for the next normal interval. Consumers that create their own work report successful and failed delivery counts directly, and can record failures that have no change event behind them. (See openmetadata-service/…/AbstractEventConsumer.java• L277-375, openmetadata-service/…/AbstractEventConsumer.java• L378-445, and openmetadata-service/…/AbstractEventConsumer.java• L449-483.)
References: openmetadata-service/…/AbstractEventConsumer.java• L147-226 openmetadata-service/…/AbstractEventConsumer.java• L277-375 openmetadata-service/…/AbstractEventConsumer.java• L378-445 openmetadata-service/…/AbstractEventConsumer.java• L449-483
Target and channel delivery
After an event passes its rules, the system groups its destinations by channel. A channel is a way to reach people or another system. The built-in set covers email, chat services, webhooks, the activity feed, and governance workflow events. Channels can render the event for their format or pass the event through when no rendering is needed. (See openmetadata-service/…/Channel.java• L23-65 and openmetadata-service/…/BuiltInChannels.java• L42-49.)
The destination can name a channel directly. If it does not, the system uses the destination type. An unknown named channel is not silently replaced with another channel. The destination is marked as unserved so the alert reports the problem without taking down other destinations. (See openmetadata-service/…/ChannelResolution.java• L22-40 and openmetadata-service/…/AlertFactory.java• L9-30.)
Recipient targets
Recipient resolution turns a destination category into concrete targets for one event. Categories can point to owners, followers, users, teams, administrators, assignees, mentions, external addresses, or downstream entities. A destination can also request downstream recipients through lineage. Lineage resolution walks the configured starting entities, their downstream entities, and relevant ancestors while visiting each entity once. A failed lineage read marks that branch as a destination failure, but recipients from readable branches can still receive the event. (See openmetadata-service/…/RecipientResolver.java• L44-49, openmetadata-service/…/RecipientResolver.java• L131-161, and openmetadata-service/…/LineageBasedDownstreamHandler.java• L29-39.)
Owner resolution reads owners from the current entity view so inherited ownership can reach both users and teams. Conversations and tasks use their creator and the entity they concern because they do not own data in the same way as catalog entities. User resolution supports both named recipients and relationship-based user IDs. Missing users or users without an address reach nobody, while a read error remains a failure for that recipient without blocking other recipients. (See openmetadata-service/…/OwnerRecipientResolver.java• L29-35, openmetadata-service/…/OwnerRecipientResolver.java• L47-64, and openmetadata-service/…/UserRecipientResolver.java• L30-37.)
The system deduplicates targets within a channel. If two destinations identify the same recipient, that recipient receives one message. Both destinations still share the result so each one keeps useful health data. Destinations with no resolvable recipient are reported as not reached rather than treated as successful delivery. (See openmetadata-service/…/TargetResolver.java• L29-34 and openmetadata-service/…/ChannelDispatch.java• L142-155.)
References: openmetadata-service/…/LineageBasedDownstreamHandler.java• L29-39 openmetadata-service/…/LineageBasedDownstreamHandler.java• L60-127 openmetadata-service/…/OwnerRecipientResolver.java• L29-35 openmetadata-service/…/OwnerRecipientResolver.java• L47-64 openmetadata-service/…/UserRecipientResolver.java• L30-37 openmetadata-service/…/UserRecipientResolver.java• L63-110 openmetadata-service/…/TargetResolver.java• L29-34 openmetadata-service/…/ChannelDispatch.java• L135-160
Channel dispatch
For each channel, the system creates the event content once and sends it to each resolved target. It checks channel availability and required files before recipient lookup. Channel failure is isolated from other channels. A channel that is unavailable, has an unusable configuration, or cannot produce a required attachment is recorded as not attempted for its destinations. Target sends can run with bounded concurrency, but the tick records every result before it moves to the next event. (See openmetadata-service/…/ChannelDispatch.java• L77-110 and openmetadata-service/…/ChannelDispatch.java• L213-249.)
Email delivery sends rendered content to each reachable mailbox when email sending is enabled. It can wait for the configured send outcome, so the alert can record a real send failure instead of only a submission to the mail service. (See openmetadata-service/…/EmailPublisher.java• L90-117 and openmetadata-service/…/EmailPublisher.java• L131-147.)
Webhook delivery can use a destination endpoint or a webhook kept on a user or team profile. Receiver lists create separate endpoint targets, and an invalid or blank receiver is skipped without discarding valid receivers in the same list. Profile webhook credentials are decrypted only when the address is used. The request adds the configured authentication and headers, blocks transport-controlled headers, and records 2xx responses as success while treating redirects as errors and other failures as retryable. (See openmetadata-service/…/WebhookAddresses.java• L38-40, openmetadata-service/…/WebhookAddresses.java• L50-75, openmetadata-service/…/WebhookAddresses.java• L84-99, and openmetadata-service/…/WebhookRequests.java• L43-47.)
The activity feed channel is an internal event sink rather than a recipient channel. It records lightweight field events with domain references and broadcasts them for real-time views. It ignores internal entity types, and a hard delete removes the entity's prior activity instead of recording a deletion entry. (See openmetadata-service/…/ActivityStreamPublisher.java• L36-45 and openmetadata-service/…/ActivityStreamPublisher.java• L75-116.)
Templates and attachments are shared across the channels for one event. The first channel that needs rendered content creates it. Other channels format that shared content for their own transport. This keeps message content aligned and avoids repeating work for each recipient. (See openmetadata-service/…/EventContent.java• L22-27 and openmetadata-service/…/EventContent.java• L42-69.)
Microsoft Teams delivery uses a TeamsMessage payload with Adaptive Card content inside attachments. This lets the shared event content reach Teams in the card format expected by that channel. (See openmetadata-service/…/TeamsMessage.java• L17-50.)
Notification templates
Notification templates turn one event into shared message content before a channel applies its own format. A subscription can choose a custom template. If it has none, the service selects an entity-specific system template, then an event template, and finally a default template. (See openmetadata-service/…/HandlebarsNotificationMessageEngine.java• L47-59 and openmetadata-service/…/HandlebarsNotificationMessageEngine.java• L130-186.)
User templates run in a closed Handlebars sandbox. They can read plain event and server data through registered language and product helpers, but they cannot load partials, use unsupported helpers, reach Java objects or methods, or change the event that is sent. A template that violates these limits is rejected during validation or falls back to the system template during delivery. (See openmetadata-service/…/TemplateSandbox.java• L13-17, openmetadata-service/…/TemplateConstructScanner.java• L11-23, openmetadata-service/…/RefusingTemplateLoader.java• L6-12, and openmetadata-service/…/HandlebarsNotificationMessageEngine.java• L61-73.)
The helper set gives message authors safe ways to inspect changes and shape notification data. It supports logical and comparison checks, collection filtering and limits, field extraction, string checks, arithmetic, entity-link parsing, domain display names, mention links, and bounded test-case table samples. Change helpers group additions, updates, and deletes, and can test whether a named field appears in any group. (See openmetadata-service/…/GroupEventChangesHelper.java• L33-43, openmetadata-service/…/HasFieldInChangesHelper.java• L14-21, openmetadata-service/…/FilterHelper.java• L12-16, and openmetadata-service/…/RenderTableSampleHelper.java• L14-34.)
Helpers also keep common notification content consistent across templates. buildEntityUrl creates safe links for entity references and supports optional links to task or conversation views. formatDate turns supported timestamp values into readable local dates and leaves unsupported values unchanged. renderTableSample produces a bounded, escaped sample for test-case messages while keeping a target column visible and showing overflow indicators. Other helpers preserve mention links, parse entity links, resolve domains, and format event values without exposing server objects. (See openmetadata-service/…/BuildEntityUrlHelper.java• L32-46, openmetadata-service/…/FormatDateHelper.java• L15-19, openmetadata-service/…/RenderTableSampleHelper.java• L14-34, openmetadata-service/…/ParseEntityLinkHelper.java• L25-44, and openmetadata-service/…/ProcessMentionsHelper.java• L26-39.)
References: openmetadata-service/…/HandlebarsNotificationMessageEngine.java• L47-73 openmetadata-service/…/HandlebarsNotificationMessageEngine.java• L102-120 openmetadata-service/…/HandlebarsNotificationTemplateProcessor.java• L15-32 openmetadata-service/…/HandlebarsNotificationTemplateProcessor.java• L35-68 openmetadata-service/…/TemplateSandbox.java• L18-48 openmetadata-service/…/TemplateConstructScanner.java• L41-70 openmetadata-service/…/AndHelper.java• L9-13 openmetadata-service/…/GroupEventChangesHelper.java• L64-91 openmetadata-service/…/HasFieldInChangesHelper.java• L31-51 openmetadata-service/…/FilterHelper.java• L25-47 openmetadata-service/…/ParseEntityLinkHelper.java• L58-77 openmetadata-service/…/ProcessMentionsHelper.java• L72-91 openmetadata-service/…/RenderTableSampleHelper.java• L51-75 openmetadata-service/…/TextDiffHelper.java• L46-77
References: openmetadata-service/…/TickChannels.java• L58-80 openmetadata-service/…/ChannelDispatch.java• L70-115 openmetadata-service/…/EmailPublisher.java• L90-117 openmetadata-service/…/WebhookAddresses.java• L50-99 openmetadata-service/…/EventContent.java• L22-27 openmetadata-service/…/TeamsMessage.java• L17-50 openmetadata-service/…/ActivityStreamPublisher.java• L75-116
Destination configuration
Destination configuration controls where a message goes and how the system protects the credentials needed to send it. Each channel defines the configuration it accepts, the receivers it can derive, and any fields that contain secrets. New or changed destinations must name a registered channel and pass that channel's rules. Existing destinations are not rejected only because newer rules would reject them, so an alert can still be edited and any send failure is recorded at delivery time. (See openmetadata-service/…/ConfigRules.java• L24-59, openmetadata-service/…/DestinationValidation.java• L30-72, and openmetadata-service/…/ChannelResolution.java• L22-40.)
Secret fields are encrypted before alert or profile data is stored, masked in responses, and decrypted only for sending. The protected fields include webhook endpoints, receiver-specific targets, custom header values, signing keys, and OAuth credentials. The same protection covers alert destinations and user or team profile webhooks. Updates may keep a stored secret in its original field, but a changed endpoint, receiver list, or token URL requires all related secrets again. Requests cannot copy a secret to another field, submit server ciphertext as a new value, or move a masked secret to a new target. (See openmetadata-service/…/ConfigSecrets.java• L31-50, openmetadata-service/…/DestinationSecrets.java• L62-119, openmetadata-service/…/DestinationSecrets.java• L144-199, and openmetadata-service/…/ProfileWebhookSecrets.java• L43-49.)
Webhook destination rules require a non-empty allowed endpoint. OAuth 2 configuration also requires a token URL, client ID, and client secret, and validates the token URL before the destination can be saved. These checks apply to user-configured destinations while stored, system-derived webhook configurations are checked as they will be sent. (See openmetadata-service/…/WebhookConfigRules.java• L31-41 and openmetadata-service/…/WebhookConfigRules.java• L53-109.)
References: openmetadata-service/…/ConfigRules.java• L24-59 openmetadata-service/…/ChannelResolution.java• L22-40 openmetadata-service/…/DestinationValidation.java• L43-72 openmetadata-service/…/DestinationSecrets.java• L62-71 openmetadata-service/…/DestinationSecrets.java• L93-119 openmetadata-service/…/DestinationSecrets.java• L157-199 openmetadata-service/…/ProfileWebhookSecrets.java• L39-45 openmetadata-service/…/WebhookSecrets.java• L21-33 openmetadata-service/…/WebhookConfigRules.java• L53-109
Delivery records and operations
The alert ledger is the durable record for one tick. It moves the event position with compare-and-set, updates aggregate counters, records successful and failed events, and stores per-destination health. The position is the main progress record. Detail rows are best effort because losing a diagnostic row is safer than sending the same message again. (See openmetadata-service/…/AlertLedger.java• L23-30 and openmetadata-service/…/AlertLedger.java• L188-210.)
The progress view separates alerts that read change events from consumers that make their own work. For change-event consumers, handled work comes from successful and failed event records, with events present in both counted once. For self-producing consumers, the view uses the counts reported by the consumer and treats the change-event stream as having no unread work. (See openmetadata-service/…/AlertProgress.java• L13-18 and openmetadata-service/…/AlertProgress.java• L42-49.)
Unread diagnostics evaluate pending events against the alert rules instead of treating every unread stream row as relevant. The service evaluates at most 500 rows for one count request and marks the result as a lower bound when more rows remain. Event listings return both all unread events and the subset that the alert rules allow through. Rule evaluation clears pooled-thread request state before and after each event so one event cannot leak context into another. (See openmetadata-service/…/PendingCount.java• L3-9 and openmetadata-service/…/UnprocessedEvents.java• L12-17.)
Delivery outcomes have three useful meanings: delivered, failed, or not attempted. Health persists across edits and restarts, while a disabled alert or destination is shown as disabled from the current stored state. The record plane returns destination health only for alerts with active position records, so unscheduled or removed alerts do not appear as active delivery sources. This lets the API expose both the latest delivery status and the reason a destination was not used. (See openmetadata-service/…/EventSubscriptionScheduler.java• L269-303, openmetadata-service/…/AlertLedger.java• L303-317, and openmetadata-service/…/AlertRecord.java• L49-95.)
The service exposes event counts, pending work, failed events, successful events, offsets, lag, scheduling state, destination status, and diagnostic records. Server metrics add visibility for tick duration, lag, trigger lateness, channel outcomes, destination outcomes, and absorbed recovery errors. (See openmetadata-service/…/EventSubscriptionScheduler.java• L307-335, openmetadata-service/…/EventSubscriptionScheduler.java• L386-401, and openmetadata-service/…/AlertTelemetry.java• L8-11.)
References: openmetadata-service/…/AlertLedger.java• L23-30 openmetadata-service/…/AlertLedger.java• L188-210 openmetadata-service/…/AlertProgress.java• L42-62 openmetadata-service/…/AlertProgress.java• L72-153 openmetadata-service/…/PendingCount.java• L3-9 openmetadata-service/…/UnprocessedEvents.java• L12-65 openmetadata-service/…/AlertRecord.java• L49-95 openmetadata-service/…/EventSubscriptionScheduler.java• L307-335 openmetadata-service/…/AlertTelemetry.java• L23-31
Change checklist
When these files or sections are changed, remember to consider these:
- Keep the subscription definition, alert catalog, rule builder, and evaluator aligned. A rule that is offered to the API but cannot be rebuilt or evaluated can silently exclude events.
- Keep feed-event subject rules and deleted-entity lookup behavior aligned. Scope filters must evaluate the parent entity for comments and must not fail when asynchronous delivery runs after deletion.
- Keep destination channel resolution, channel registration, and destination validation aligned. A stored channel name must resolve to the intended channel on every server that can run the alert.
- Keep activity-feed filtering and retention behavior aligned with the event types that the feed owns. Internal entities and hard deletes must not create misleading feed history.
- Keep recipient resolution, lineage traversal, and target de-duplication aligned. A new recipient category or lineage root must preserve per-destination health and must not send the same target twice through one channel.
- Keep owner and user lookup behavior aligned with the channel address directory. A recipient that resolves to a user or team must still have a usable address for the selected channel.
- Keep channel secret-field rules aligned with alert destinations and profile webhooks. A field that becomes secret must be encrypted at rest and masked in every response path.
- Keep target-change checks aligned with secret restoration. A destination or profile webhook that changes its endpoint, receiver list, or token URL must not reuse a masked stored credential.
- Keep webhook receiver parsing aligned with per-receiver delivery. One malformed receiver must not discard valid receivers or expose shared credentials to the wrong target.
- Keep webhook endpoint and OAuth validation aligned with the URL safety policy. A new endpoint or token URL must pass the same allow rule before it can be stored or used.
- Keep webhook request authentication and header filtering aligned with the secret fields. OAuth authorization must not be replaced by a custom header, and transport-controlled headers must remain blocked.
- Keep template helper registration, metadata, validation, and rendering aligned. A helper offered to authors must be safe to expose and available in every path that validates or renders a template.
- Keep entity-link routes, date input handling, and table-sample limits aligned with the event data and UI routes used by notification templates. A helper change can make a message link empty, show an unreadable date, or hide the field needed to explain a test failure.
- Keep the template sandbox's allowed constructs aligned with its data boundary. A new template feature must not expose object methods, file reads, partials, or mutable event objects.
- Keep change-group helper output aligned with system and custom templates. A change that moves a field between add, update, and delete groups can alter notification meaning without changing the event itself.
- Keep ledger position updates and delivery outcome writes aligned. Moving the position before a later delivery failure can change whether the event is retried or only appears in diagnostics.
- Keep scheduler job convergence and alert-record creation aligned. An enabled alert needs both a scheduled job and an initial position record before it can process events.
- Keep bulk destination-health reads aligned with position and health records. Each scheduled alert in a status response must keep its own health, while unscheduled or removed alerts must not appear active.
- Keep custom consumers within the alert tick contract. Consumers that produce their own work must report delivery counts and failures so status and diagnostics do not stay at zero.
- Keep channel target concurrency within the tick's result and context contract. Parallel sends must still record every target outcome and preserve the request context used by the channel.
- Keep Teams message fields aligned with the Adaptive Card payload expected by the Teams channel. A shape change can make an otherwise successful send unreadable to Teams.
- Keep event-handler registration and endpoint exclusion aligned. A successful auditable write must reach the intended event handler, while excluded endpoints must not create alert-driving events.
- Keep progress counts, unread filtering, and the lower-bound flag aligned. A diagnostic count that evaluates only part of the backlog must not appear exact to API clients.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| An enabled subscription has no valid job or trigger | The alert does not poll new events | The periodic reconciler converges the job and records the repair reason |
| A destination names a channel that is not registered | That destination is not sent through another channel | Channel resolution marks only that destination unserved |
| A new webhook endpoint or OAuth token URL is blank or not allowed | The destination cannot be saved | Webhook configuration rules require a non-empty allowed URL and complete OAuth fields |
| A destination or profile webhook moves its endpoint while keeping masked credentials | Stored credentials could be sent to a caller-selected target | Target changes require every affected secret to be entered again |
| A request copies a stored secret to another field | A secret could be stored or served outside its protected field | Secret guards reject copied, moved, or replayed secret values |
| Recipient lookup fails for one destination | That destination does not reach its targets | Lookup failures are isolated and recorded while other destinations continue |
| A lineage read fails for one branch | Recipients from that branch are missed | The lineage walk records the destination failure while readable branches continue |
| A webhook receiver is blank or has an invalid URI | That receiver is skipped | Receiver parsing isolates invalid entries from valid receivers |
| A webhook returns a redirect | The delivery is marked in error instead of following the redirect | Webhook status handling rejects 3xx responses |
| A webhook returns a 4xx or 5xx response | The destination waits for a retry | Webhook status handling records the failure as retryable |
| Email sending is disabled | Email delivery is skipped without a mail send | The email publisher checks the configured sender state before delivery |
| A custom template uses an unsupported construct | Delivery uses the system template instead | The template scanner and closed loader refuse unsupported constructs |
| A template helper is not registered | Template validation fails or rendering cannot use the helper | The sandbox checks helper calls against its sealed registry |
| An entity lacks the data needed for a UI link | The notification contains no usable entity link | The URL helper returns no link instead of creating a malformed route |
| A date value is not a supported timestamp | The original value is shown instead of a formatted date | The date helper falls back to the input text |
| A table sample is empty or has invalid shape | The notification contains no sample table | The table helper accepts only non-empty column and row lists |
| A filter cannot evaluate one change event | That event is excluded and the issue is recorded | Per-event evaluation catches the error instead of failing the full batch |
| A change-event position has a temporary gap | The alert waits before advancing | The cursor waits for a bounded time, then steps over an unresolved gap |
| The alert position was moved by another writer | The tick cannot claim its new position | Compare-and-set prevents the tick from overwriting the newer position |
| A channel or required attachment is unavailable | The event is not attempted through that channel | The channel reports a not-attempted outcome with a reason |
| An activity-feed event has no entity payload and cannot be reloaded | The feed records no activity for that event | The publisher skips the event and keeps the alert flow alive |
| A diagnostic query has more than the evaluation limit of unread events | The pending count is partial rather than exact | The result sets lowerBound so clients know more unread events may match |
| A consumer makes its own work but does not report its delivery result | Status and diagnostics show no handled work | The consumer records success and failure counts on the alert ledger |
| An alert has no position record when destination health is read | The alert has no active destination health result | The health view includes only alerts with a scheduled position record |
Key files
| File | Why to read it |
|---|---|
| openmetadata-service/…/EventSubscriptionScheduler.java | Shows scheduler startup, alert status, offsets, lag, and diagnostic views. |
| openmetadata-service/…/AlertJobs.java | Shows how stored subscription state converges to scheduled work. |
| openmetadata-service/…/AlertReconciler.java | Shows repair of missing or stale alert jobs and records. |
| openmetadata-service/…/EventFilter.java | Shows how successful write responses enter the configured event-handler pipeline. |
| openmetadata-service/…/AbstractEventConsumer.java | Shows the tick lifecycle from polling through filtering, delivery, commit, and retry progress. |
| openmetadata-service/…/AlertUtil.java | Shows alert scope, rule evaluation, watermarks, and stale execution handling. |
| openmetadata-service/…/AlertsRuleEvaluator.java | Shows the event context available to subscription conditions. |
| openmetadata-service/…/TickChannels.java | Shows channel grouping and isolation for one event. |
| openmetadata-service/…/ChannelDispatch.java | Shows channel preflight, target resolution, bounded target sending, and per-destination outcomes. |
| openmetadata-service/…/ActivityStreamPublisher.java | Shows the activity-feed sink for lightweight history and real-time updates. |
| openmetadata-service/…/TargetResolver.java | Shows recipient-to-target resolution and de-duplication. |
| openmetadata-service/…/LineageBasedDownstreamHandler.java | Shows downstream recipient traversal through lineage and branch-level failure isolation. |
| openmetadata-service/…/OwnerRecipientResolver.java | Shows owner, task, and conversation recipient scope. |
| openmetadata-service/…/UserRecipientResolver.java | Shows named and relationship-based user resolution. |
| openmetadata-service/…/ConfigRules.java | Shows the channel contract for destination validation, receivers, and secret fields. |
| openmetadata-service/…/DestinationValidation.java | Shows validation of new and changed destinations. |
| openmetadata-service/…/ChannelResolution.java | Shows explicit channel selection and the no-fallback rule. |
| openmetadata-service/…/DestinationSecrets.java | Shows storage, masking, restoration, and use of destination secrets. |
| openmetadata-service/…/DestinationSecretGuards.java | Shows the boundary that rejects unsafe secret updates and patches. |
| openmetadata-service/…/ProfileWebhookSecrets.java | Shows secret handling for user and team profile webhooks. |
| openmetadata-service/…/WebhookSecrets.java | Shows which webhook configuration fields need secret handling. |
| openmetadata-service/…/WebhookConfigRules.java | Shows webhook endpoint and OAuth configuration checks. |
| openmetadata-service/…/WebhookAddresses.java | Shows profile and configured webhook target resolution. |
| openmetadata-service/…/WebhookRequests.java | Shows webhook authentication, header safety, and response status handling. |
| openmetadata-service/…/EmailPublisher.java | Shows rendered email delivery and send outcome handling. |
| openmetadata-service/…/TeamsMessage.java | Shows the message shape used to deliver event content to Microsoft Teams. |
| openmetadata-service/…/HandlebarsNotificationMessageEngine.java | Shows custom and system template selection and the event data given to templates. |
| openmetadata-service/…/HandlebarsNotificationTemplateProcessor.java | Shows template validation and rendering through the sandbox. |
| openmetadata-service/…/HandlebarsProvider.java | Shows the product helpers available to notification templates. |
| openmetadata-service/…/TemplateSandbox.java | Shows the closed data and syntax boundary for user templates. |
| openmetadata-service/…/GroupEventChangesHelper.java | Shows how event field changes become template-friendly groups. |
| openmetadata-service/…/HasFieldInChangesHelper.java | Shows field presence checks used by notification templates. |
| openmetadata-service/…/BuildEntityUrlHelper.java | Shows safe entity links and optional task or conversation links in notification content. |
| openmetadata-service/…/FormatDateHelper.java | Shows readable date formatting for supported notification values. |
| openmetadata-service/…/RenderTableSampleHelper.java | Shows bounded, escaped table samples for test-case notifications. |
| openmetadata-service/…/AlertLedger.java | Shows durable positions, counters, health, and delivery records. |
| openmetadata-service/…/AlertProgress.java | Shows how status and unread work differ between stream readers and self-producing consumers. |
| openmetadata-service/…/PendingCount.java | Shows how partial unread counts are marked as lower bounds. |
| openmetadata-service/…/UnprocessedEvents.java | Shows bounded unread evaluation and safe rule checks for diagnostics. |
| openmetadata-service/…/AlertRecord.java | Shows creation, bulk reading, opening, skipping, and removal of alert records and destination health. |