Skip to content

[2.1] Fixes #38657: stop logging expected asset not-found at ERROR - #38700

Merged
yan-3005 merged 1 commit into
2.1from
backport/2.1/pr-38658
Nov 25, 2026
Merged

yan-3005 merged 1 commit into
2.1from
backport/2.1/pr-38658

Conversation

@yan-3005

Copy link
Copy Markdown
Contributor

Describe your changes:

Fixes #38657

Backport of #38658 to 2.1 (clean cherry-pick of 4e388acaada, no conflicts).

AssetRepository logged the expected not-found from getByFQN / getById / getByFqnPrefix at ERROR before rethrowing. The attachments widget hits GET /attachments/fqn/{fqn}/{type} on every Knowledge Center page, so every page without attachments became an error-tracker event. Not-found is now rethrown without the ERROR log; the response stays 404 and real read failures still log at ERROR.

Type of change:

  • Bug fix

Tests:

🤖 Generated with Claude Code

The attachments widget asks GET /attachments/fqn/{fqn}/{type} on every
Knowledge Center page; a page without attachments is an expected 404.
AssetRepository logged that EntityNotFoundException at ERROR before
rethrowing, so every such page view became an error-tracker event.
getById and getByFqnPrefix had the same pattern.

Not-found is now rethrown without the ERROR log; the HTTP response is
unchanged (404) and real read failures still log at ERROR.

(cherry picked from commit 4e388ac)
@yan-3005
yan-3005 requested a review from a team as a code owner November 25, 2026 14:10
@yan-3005
yan-3005 requested review from sonika-shah and removed request for a team November 25, 2026 14:10
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 skip-pr-checks label.

@gitar-bot

gitar-bot Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Suppressing ERROR logs for asset-not-found exceptions changes monitoring signals; unexpected missing assets may no longer reach Sentry, while 404 responses remain unchanged.

Stops logging expected asset not-found responses from AssetRepository at ERROR, so GET /attachments/fqn/{fqn}/{type} no longer floods the error tracker on every Knowledge Center page without attachments. Not-found still returns 404 and real read failures still log at ERROR. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@yan-3005
yan-3005 merged commit 45944a4 into 2.1 Nov 25, 2026
45 of 46 checks passed
@yan-3005
yan-3005 deleted the backport/2.1/pr-38658 branch November 25, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants