-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MODINV-1023: Fix mod-inventory OOM issue. #721
Conversation
…nto MODINV-1023 # Conflicts: # NEWS.md
src/main/java/org/folio/inventory/dataimport/cache/MappingMetadataCache.java
Outdated
Show resolved
Hide resolved
@@ -107,4 +111,18 @@ private CompletableFuture<Optional<MappingMetadataDto>> loadMappingMetadata(Stri | |||
}); | |||
} | |||
|
|||
public static synchronized MappingMetadataCache getInstance(Vertx vertx, HttpClient httpClient, JsonObject config) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should get the config from the Vertx instance and remove the config parameter here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@okolawole-ebsco Thank you! I improved it. Feel free to double-check it.
…nto MODINV-1023 # Conflicts: # NEWS.md
…nto MODINV-1023
Quality Gate passedIssues Measures |
Change creation MappingMetadataCache: 1 Instance for all verticles.