Repository navigation
Fixes #36437: Refuse RDF writes before Fuseki's volume fills and compact early when it runs low (backport 2.0 #36472) - #36661
Conversation
…ring maintenance
…act early when it runs low
…lure, metrics in OntologyMetrics
…df-storage-guard-2.0 # Conflicts: # openmetadata-service/src/main/java/org/openmetadata/service/rdf/storage/JenaFusekiStorage.java
…heck every 15 minutes
…, and wait for the next scheduled compaction after a futile urgent one
… pause, compactions are tracked to the end, pipeline runs go through the queue
… crashing it again
…ing generation's size would refuse the compactions a full volume needs
…df-storage-guard-2.0 # Conflicts: # openmetadata-service/src/main/java/org/openmetadata/service/rdf/maintenance/RdfStorageMaintenanceService.java # openmetadata-service/src/main/java/org/openmetadata/service/rdf/storage/JenaFusekiStorage.java # openmetadata-service/src/main/java/org/openmetadata/service/rdf/storage/RdfStorageMaintenanceException.java
…df-storage-guard-2.0
…ause holder each write through their own handle
…rites back, using a server registry
… dataset keeps a full copy
…df-storage-guard-2.0 # Conflicts: # openmetadata-service/src/main/java/org/openmetadata/service/rdf/maintenance/RdfStorageMaintenanceService.java # openmetadata-service/src/test/java/org/openmetadata/service/rdf/maintenance/RdfStorageMaintenanceServiceTest.java
…etadata extension on, as production does
…df-storage-guard-2.0
…d not finish, not only one it lost
…df-storage-guard-2.0
…ers that do not pause just wait it out
…ded RDF projection, whatever stopped it
…df-storage-guard-2.0 # Conflicts: # openmetadata-service/src/main/java/org/openmetadata/service/rdf/maintenance/RdfStorageMaintenanceService.java # openmetadata-service/src/test/java/org/openmetadata/service/rdf/maintenance/RdfStorageMaintenanceServiceTest.java
…ompacts to make room and runs once more
…s stop for an interval, the scheduled one still runs
…reader for the storage guard
…guard-2.0 # Conflicts: # conf/openmetadata.yaml # docs/rdf-production-setup.md # openmetadata-service/src/main/java/org/openmetadata/service/apps/bundles/rdf/RdfIndexApp.java # openmetadata-service/src/main/java/org/openmetadata/service/rdf/RdfRepository.java # openmetadata-service/src/main/java/org/openmetadata/service/rdf/maintenance/RdfStorageMaintenanceService.java # openmetadata-service/src/main/java/org/openmetadata/service/rdf/storage/ForwardingRdfStorage.java # openmetadata-service/src/main/java/org/openmetadata/service/rdf/storage/JenaFusekiStorage.java # openmetadata-service/src/main/java/org/openmetadata/service/rdf/storage/RdfStorageInterface.java # openmetadata-service/src/main/java/org/openmetadata/service/rdf/storage/RdfStorageMaintenanceException.java # openmetadata-service/src/test/java/org/openmetadata/service/apps/bundles/rdf/RdfIndexAppTest.java # openmetadata-service/src/test/java/org/openmetadata/service/rdf/maintenance/RdfStorageMaintenanceServiceTest.java # openmetadata-spec/src/main/resources/json/schema/api/configuration/rdfConfiguration.json # openmetadata-ui/src/main/resources/ui/src/generated/api/configuration/rdfConfiguration.ts
Code Review ✅ Approved 1 closed / 1 findings🔴 High risk · Changing RDF write refusal, retries, and reindex/compaction handling could interrupt persistence or leave metadata projections stale during low-disk recovery. Adds a Fuseki write guard that refuses RDF writes with HTTP 507 once free space drops below the configured reserve, plus a storage report endpoint and urgent compaction when the volume runs low. Refused writes now wait in the queue rather than consuming delivery attempts. The bulk reconcile path's handling of 507 refusals was addressed, so it no longer logs them as ERROR failures. No open issues found. ✅ 1 closed✅ Quality: Bulk reconcile path logs and wraps 507 refusals as ERROR failures
VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
|



Describe your changes:
Fixes #36437
Backport of PR #36472 to the 2.0 release branch, on top of PR #36660, the 2.0 backport of PR #36471. The commits apply as on 2.1. PR #36472 explains the problem.
What this PR changes
In the Fuseki image (
docker/rdf-store; open-metadata/jena gets the same code for production):OPENMETADATA_STORAGE_MIN_FREE(10% by default), every write gets HTTP 507 Insufficient Storage and nothing is applied. Reads and compaction keep working.GET /$/openmetadata/storage(admin only) returns the volume's size, free space and reserve, and whether writes are refused.JVM_ARGS.In the server:
RDF_URGENT_COMPACTION_FREE_PERCENT(50) or the guard refusing writes, it compacts without waiting for the daily slot. Compaction copies the live data, so 50% leaves room for the copy. If compacting cannot get back above the threshold, data compaction cannot remove fills the volume: the server logs at ERROR that it needs expanding, and urgent compactions stop for one interval while the daily one still runs.The image-server contract is recorded in
ADR:2026-10-28-the-fuseki-image-refuses-writes-below-a-free-space-reserve-and-reports-its-volume.How it was tested on 2.0
docker/rdf-store. 2.0's CI has no RDF lane, so they were run locally (-DenableRdf=true).Type of change:
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.docs/decisions/2026-10-28-the-fuseki-image-refuses-writes-below-a-free-space-reserve-and-reports-its-volume.md.Release-stack refresh
fb5f52a6151: merged the refreshed #36660 and regenerated the disk-guard configuration types, includingurgentFreeSpacePercent. Full schema generation completed with 898 TypeScript outputs. The backend package build andStorageGuardRefusalTest,StorageFactsTest,RdfStorageMaintenanceServiceTest,RdfLiveWriteTest, andRdfUpdaterTestpassed (47 tests, 0 failures). Merge #36660 first, then retarget this PR to2.0and rerun compatibility checks.Refreshed maintenance base
Includes the recovery fixes from #36660: the shared serving pause survives a compaction budget overrun and malformed/unavailable task responses; the versioned consumer fence protects
pipelineExecutionduring rolling upgrades; health reporting continues while compaction waits. Merge conflicts preserved both the disk-reporting/507 guard and the pause-preserving compaction API.Validation at
67f2bd6fa19: 111 focused unit tests plus 10 recovery integration cases passed, using real MySQL and PostgreSQL with an HTTP Fuseki boundary. Coverage includes disk facts, HTTP 507 retry classification, urgent compaction, pause retention, legacy-consumer exclusion and migration handoff, and compaction-health reporting. Spotless and independent review passed; no unanswered important findings.Merge #36660 first, then retarget this PR to its release branch and rerun the Collate build. The current feature-branch base does not exist in the Collate repository. Deploy upgraded servers before publishing/rolling out the guarded Fuseki image.