Conversation
/inventory-reindex-records/export API to export reindex record ranges to S3 and publish reindex.file-ready events
mod-inventory-storage-server/src/main/java/org/folio/rest/impl/InitApiImpl.java
Show resolved
Hide resolved
...ntory-storage-server/src/main/java/org/folio/services/reindex/ReindexExportOrchestrator.java
Show resolved
Hide resolved
...nventory-storage-server/src/main/java/org/folio/services/reindex/ReindexS3ExportService.java
Outdated
Show resolved
Hide resolved
viacheslavkol
approved these changes
Mar 2, 2026
SvitlanaKovalova1
approved these changes
Mar 3, 2026
JSON Schema Changes (
|
| Status | File (HEAD) |
|---|---|
| Renamed (100%) | ramls/examples/reindex-records/reindexRecordsRequest.json |
| Renamed (082%) | ramls/schemas/reindex-records/reindexRecordsRequest.json |
Diffs (normalized first, fallback to raw if empty)
ramls/examples/reindex-records/reindexRecordsRequest.json
No structural changes (after normalization)
Showing raw textual diff (formatting/whitespace changes may appear)
ramls/schemas/reindex-records/reindexRecordsRequest.json
--- ramls/schemas/reindex-records/reindexRecordsRequest.json (base)
+++ ramls/schemas/reindex-records/reindexRecordsRequest.json (head)
@@ -2,7 +2,7 @@
"$schema": "http://json-schema.org/draft-04/schema#",
"additionalProperties": false,
"description": "Inventory Storage records for reindex",
- "javaType": "org.folio.rest.jaxrs.model.PublishReindexRecordsRequest",
+ "javaType": "org.folio.rest.jaxrs.model.ReindexRecordsRequest",
"properties": {
"id": {
"$ref": "../common/uuid.json",
@@ -37,6 +37,11 @@
"holdings"
],
"type": "string"
+ },
+ "traceId": {
+ "$ref": "../common/uuid.json",
+ "description": "UUID for tracing the request, used for debugging and logging",
+ "type": "string"
}
},
"required": [
|
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.



Purpose
Implement MODINVSTOR-1519 by adding export support for reindex record ranges so downstream reindex processing can consume NDJSON files from S3 and react to a file-ready Kafka event.
Approach
POST /inventory-reindex-records/exportusing the sharedreindexRecordsRequestschema.ReindexExportOrchestrator,ReindexS3ExportService) forinstance,item, andholdingsranges.reindex.file-readyevent model/publisher and wired event emission after successful export.S3_REINDEX_*) and Kafka topic partitions (KAFKA_REINDEX_FILE_READY_TOPIC_NUM_PARTITIONS), and split MARC migration S3 settings toS3_MARC_MIGRATION_*.Changes Checklist
POST /inventory-reindex-records/export; unified request schema/example names for reindex APIs (reindexRecordsRequest.json).inventory-reindex-recordsto1.1inventory-storage.reindex-records.export.postand mapped endpoint permission in module descriptor.InventoryReindexRecordsExportITand updated related integration tests./inventory-reindex-records/export.Related Issues
Learning and Resources (if applicable)
N/A
Screenshots (if applicable)
N/A