Repository navigation
[2.1] Fixes #38002: Serve certification with both dates on every read; profiler skips unparseable tables - #38562
Merged
Merged
Conversation
…iler skips unparseable tables (#38257) * Fixes #38002: serve certification with both dates on every read A certification is read from any tag_usage row under the configured classification, but only rows written through validateAndStampCertification carry an expiry. Tags on create, dbt dataModel tags, a classification switch and the 1.12.5 migration leave it out, so typed clients (the Python AssetCertification requires expiryDate) reject the entity. - The read builder derives a missing expiry as appliedDate + the configured validityPeriod (the stamping arithmetic, now shared through expiryFor); a missing appliedAt reads as the epoch. The batch list path uses the same builder instead of its inline copy. - Bulk reads load certification whenever tags or certification is requested, as setFieldsInternal does, and clear it otherwise, so a stale inline copy in the entity row is never served (the profiler lists with fields=tags). - addDataModel and the CSV change-event write go through serializeForStorage, so they stop storing certification inline. - A Redis read-bundle entry whose certification lacks a date is treated as not loaded and rebuilds itself. ADR:2026-11-20-certification-reads-derive-a-missing-expiry-from-the-validity-period * Fixes #38002: profiler skips and reports a table it cannot parse One table the client cannot parse (a certification served without the expiryDate its model requires, by a server without the fix) failed the whole list page, and the profiler dropped every table from that page to the end of the database. list_entities and list_all_entities take an optional on_skip hook, called for each element skip_on_failure drops. The profiler lists tables with skip_on_failure=True and records each skipped table in status.failed with its FQN, so the run summary still counts it. (cherry picked from commit 5b5cb59)
gh-bot-collate
Bot
requested review from
ulixius9
and removed request for
a team
November 24, 2026 08:28
Author
|
🤖 This backport will not merge itself: |
15 tasks done
# Conflicts: # openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/TableRepository.java
Contributor
|
Merged the latest |
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.
Automated backport of #38257 to
2.1.5b5cb590bcdd231cb23895f4aa587db75eddfbe3Resolution notes
Backport notes: PR #38257 → 2.1
Conflict
openmetadata-service/src/main/java/org/openmetadata/service/jdbi3/TableRepository.javaconflictedin
addDataModel, at thedao.update(...)call the PR touches.The PR's actual change there is a one-line swap:
(
serializeForStoragealready exists on 2.1 — it came in cleanly via theEntityRepository.javaside of this same cherry-pick.)
The conflict itself wasn't caused by this change: on
main, the line immediately after isstorePendingGlossaryTerms(heldTerms, updatedBy);, part of unrelated "pending glossary term" logicthat doesn't exist in 2.1's
addDataModel(noheldTerms/updatedBylocals, nostorePendingGlossaryTermscall anywhere in this method on this branch). Git pulled that adjacentline into the conflict hunk even though it isn't part of PR #38257.
Resolution
Applied only the
serializeForStorage(table)swap and left everything else inaddDataModel(including the surrounding comment block) exactly as it is on 2.1. Did not introduce
storePendingGlossaryTerms/heldTerms— that functionality is out of scope for this backport anddepends on code not present on 2.1.
What to check by hand
addDataModelon 2.1 still reads as before, just withserializeForStorage(table)inplace of
JsonUtils.pojoToJson(table).EntityRepository.java, the ingestion profiler/ometa changes,the new
CertificationWithoutExpiryIT.java, the ADR, and the test updates) applied withoutconflicts — worth a normal review pass but nothing was hand-resolved there.
Opened from openmetadata-collate, which holds the credentials needed to open a PR here. It merges itself once this branch's required checks pass — no review needed. If a check fails it stays open and the author of #38257 is asked to look.
resolver run