-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
feat(reindex): Implement endpoint to run merge reindex stage only for…
… failed ranges Implements: MSEARCH-906
1 parent
c20af70
commit 5e03fef
Showing
19 changed files
with
241 additions
and
26 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
15 changes: 15 additions & 0 deletions
15
...resources/swagger.api/paths/reindex-instance-records/reindex-instance-records-failed.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
post: | ||
operationId: reindexFailedInstanceRecords | ||
summary: Failed Re-Index | ||
description: Initiates reindexing of failed ranges for inventory instance records | ||
tags: | ||
- index-management | ||
parameters: | ||
- $ref: '../../parameters/x-okapi-tenant-header.yaml' | ||
responses: | ||
'200': | ||
description: Reindexing of failed ranges has been started | ||
'400': | ||
$ref: '../../responses/badRequestResponse.yaml' | ||
'500': | ||
$ref: '../../responses/internalServerErrorResponse.yaml' |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
INSERT INTO merge_range (id, entity_type, tenant_id, lower, upper, created_at, finished_at) | ||
INSERT INTO merge_range (id, entity_type, tenant_id, lower, upper, created_at, finished_at, status, fail_cause) | ||
VALUES | ||
('b7df83a1-8b15-46c1-9a4c-9d2dbb3cf4d6', 'holdings', 'consortium', 'cafc64298e7c488cbe9decc45e7659ec', '84aac856c4ab426c83029ab0e6a295c0', current_timestamp, current_timestamp), | ||
('dfb20d52-7f1f-4b5b-a492-2e47d2c0ac59', 'holdings', 'member_tenant', '9c2c968dc6424403a4492ec40afcd736', '8751df7ca5884d8682688c153bb98b16', current_timestamp, current_timestamp), | ||
('2f23b9fa-9e1a-44ff-a30f-61ec5f3adcc8', 'item', 'member_tenant', '9c2c968dc6424403a4492ec40afcd736', '8751df7ca5884d8682688c153bb98b16', current_timestamp, current_timestamp), | ||
('9f8febd1-e96c-46c4-a5f4-84a45cc499a2', 'instance', 'consortium', '9c2c968dc6424403a4492ec40afcd736', '8751df7ca5884d8682688c153bb98b16', current_timestamp, null); | ||
('b7df83a1-8b15-46c1-9a4c-9d2dbb3cf4d6', 'holdings', 'consortium', 'cafc64298e7c488cbe9decc45e7659ec', '84aac856c4ab426c83029ab0e6a295c0', current_timestamp, current_timestamp, 'FAIL', 'Some error'), | ||
('dfb20d52-7f1f-4b5b-a492-2e47d2c0ac59', 'holdings', 'member_tenant', '9c2c968dc6424403a4492ec40afcd736', '8751df7ca5884d8682688c153bb98b16', current_timestamp, current_timestamp, 'FAIL', 'Some error'), | ||
('2f23b9fa-9e1a-44ff-a30f-61ec5f3adcc8', 'item', 'member_tenant', '9c2c968dc6424403a4492ec40afcd736', '8751df7ca5884d8682688c153bb98b16', current_timestamp, current_timestamp, 'SUCCESS', null), | ||
('9f8febd1-e96c-46c4-a5f4-84a45cc499a2', 'instance', 'consortium', '9c2c968dc6424403a4492ec40afcd736', '8751df7ca5884d8682688c153bb98b16', current_timestamp, null, 'FAIL', 'Some error'); |