Repository navigation
fix(rdf): complete RdfIndexApp with nothing indexed when RDF is not configured - #37155
Merged
Merged
Conversation
Contributor
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as 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.
Contributor
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
yan-3005
approved these changes
Nov 6, 2026
6 of 7 tasks
This was referenced Nov 12, 2026
6 tasks done
11 tasks done
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.
Describe your changes:
Issue: On servers where RDF is not configured,
RdfRepositoryis never initialized. The scheduledRdfIndexApprun calledRdfRepository.getInstance()before its enabled check, so every run threwIllegalStateException: RdfRepository not initializedand was recorded as Failed.Fix: RDF is optional, so a server without it now completes the run with nothing indexed, the same as
RdfInferenceAppdoes today.RdfIndexAppresolves the repository withRdfRepository.getInstanceOrNull()and checks it before doing any work.COMPLETEDwith no failure, instead of throwing or being marked Failed.RdfIndexAppTestcovers the uninitialized case: no exception, statusCOMPLETED, no failure context, final status pushed.Type of change:
High-level design:
N/A — small change.
Tests:
Use cases covered
RdfIndexApprun completes with nothing indexed and does not throw.Unit tests
RdfIndexAppTestBackend integration tests
Ingestion integration tests
Playwright (UI) tests
Manual testing performed
RdfIndexAppTestrun 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(thepr-checklistskill 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 itsREADME.md). This description is gone fromgit logafter 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