Skip to content

fix(rdf): complete RdfIndexApp with nothing indexed when RDF is not configured - #37155

Merged
sonika-shah merged 3 commits into
mainfrom
seer/fix/rdf-index-app-uninitialized-repo
Nov 6, 2026
Merged

sonika-shah merged 3 commits into
mainfrom
seer/fix/rdf-index-app-uninitialized-repo

Conversation

@sentry

@sentry sentry Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

Issue: On servers where RDF is not configured, RdfRepository is never initialized. The scheduled RdfIndexApp run called RdfRepository.getInstance() before its enabled check, so every run threw IllegalStateException: RdfRepository not initialized and was recorded as Failed.

Fix: RDF is optional, so a server without it now completes the run with nothing indexed, the same as RdfInferenceApp does today.

  • RdfIndexApp resolves the repository with RdfRepository.getInstanceOrNull() and checks it before doing any work.
  • When RDF is not initialized or not enabled, the run logs at info level and ends as COMPLETED with no failure, instead of throwing or being marked Failed.
  • RdfIndexAppTest covers the uninitialized case: no exception, status COMPLETED, no failure context, final status pushed.

Type of change:

  • Bug fix

High-level design:

N/A — small change.

Tests:

Use cases covered

  • RDF repository not initialized: the scheduled RdfIndexApp run completes with nothing indexed and does not throw.

Unit tests

  • I added unit tests for the new/changed logic.
  • Files added/updated: RdfIndexAppTest

Backend integration tests

  • Not applicable (no backend API changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Not applicable (no UI changes).

Manual testing performed

RdfIndexAppTest run locally.

UI screen recording:

Not applicable — backend-only change to a scheduled Quartz job, no UI changes.

Checklist:

  • I have read the CONTRIBUTING document.

  • My PR title is Fixes <issue-number>: <short explanation>

  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.

  • I have commented on my code, particularly in hard-to-understand areas.

  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.

  • For a UI feature or feature task: as part of PR creation, I ran the PR build in Docker with sample data and embedded a verified GitHub-hosted recording plus build/health evidence above (or explained why this requirement is not applicable).

  • I have added tests (unit / integration / Playwright as applicable) and listed them above.

  • Self-review: I reviewed the final diff against REVIEW.md (the pr-checklist skill runs it) and fixed every 🔴 finding, or answered it on the line below.

  • Decision check: if this PR decides something the next contributor could undo — a schema field, REST path or format another component or repo must agree with, a new default or limit, an ordering that must hold, or a rule stated only in this description — it adds a record under docs/decisions/ (see its README.md). This description is gone from git log after the squash-merge.

  • I have added a test that covers the exact scenario we are fixing. For complex issues, comment the issue number in the test for future reference.

Fixes COLLATE-BACKEND-CD

@sentry
sentry Bot requested a review from a team as a code owner November 5, 2026 11:11
@sentry
sentry Bot requested a review from mohityadav766 November 5, 2026 11:11
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

…onfigured

RDF is optional, so a server without it completes the run instead of
marking it Failed, matching RdfInferenceApp.
@sonika-shah sonika-shah changed the title fix(rdf): fail RdfIndexApp cleanly when RdfRepository is not initialized fix(rdf): complete RdfIndexApp with nothing indexed when RDF is not configured Nov 6, 2026
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@sonika-shah sonika-shah added the safe to test Add this label to run secure Github workflows on PRs label Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants