CMR-11421: Prevent multiple calls to KMS fixer service on CMR - #2484
Merged
Conversation
eudoroolivares2016
marked this pull request as ready for review
August 13, 2026 19:14
eudoroolivares2016
requested review from
bmsultz-nasa,
cgokey,
eereiter,
htranho,
isja17,
jceaser,
jmaeng72 and
zimzoom
August 13, 2026 19:15
eereiter
approved these changes
Aug 13, 2026
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2484 +/- ##
===========================================
- Coverage 57.95% 29.20% -28.76%
===========================================
Files 1074 1014 -60
Lines 74715 71268 -3447
Branches 2192 1266 -926
===========================================
- Hits 43303 20811 -22492
- Misses 29361 49254 +19893
+ Partials 2051 1203 -848 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
6 tasks
eudoroolivares2016
force-pushed
the
CMR-11421
branch
from
August 14, 2026 15:40
081da73 to
cc52178
Compare
zimzoom
approved these changes
Aug 14, 2026
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.
Overview
What is the objective?
We noticed in some SIT testing that we could occassionaly get into a loop condition where CMR sends a collection to KMS to fix keyword issues KMS will fix those and then ingest to CMR. This is usually fine if all fixes work but, if the service is only able to fix part of the metadata e.g. if some of the keywords can be fixed because they were old keywords that have been moved/renamed, but, some are "garbage" values meaning they have never existed in KMS we cannot resolve those directly but, we will ingest the revision on KMS to fix the ones we can fix. That results in a subsequent call to KMS. There are several things on the KMS side that make this not an infinite loop but, we still want to be able to just stop this cycle from the KMS call.
Thus this ticket will include a KMS PR to just use the header in the ingest call
What are the changes?
Create new header for collections pull it out in the validation-options and use that in the conditional for whether or not we send a request to the KMS fixer service
What areas of the application does this impact?
Collection ingest
Testing
I don't think this is a flag we want to show on the docs. Its not sensitive but, its really only applicable to the KMS-CMR exchange
Required Checklist
Additional Checklist