Skip to content
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

Merged
merged 8 commits into from
Jun 5, 2024
Merged

MODINV-1023: Fix mod-inventory OOM issue. #721

merged 8 commits into from
Jun 5, 2024

Conversation

VRohach
Copy link
Contributor

@VRohach VRohach commented May 14, 2024

Change creation MappingMetadataCache: 1 Instance for all verticles.

@@ -107,4 +111,18 @@ private CompletableFuture<Optional<MappingMetadataDto>> loadMappingMetadata(Stri
});
}

public static synchronized MappingMetadataCache getInstance(Vertx vertx, HttpClient httpClient, JsonObject config) {
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link

sonarqubecloud bot commented Jun 5, 2024

@VRohach VRohach merged commit c3699f8 into master Jun 5, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants