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

Fix/3321/fix stuck metric gardener importer #3382

Merged
merged 9 commits into from Oct 31, 2023

Conversation

Nereboss
Copy link
Collaborator

Fix metric gardener importer getting stuck on larger folders

A known issue in the ShellRun function caused extensive runtimes for folders where the output of metric gardener was long. This was fixed by swapping out the ShellRun function for ProcessBuilder and discarding the output of metric gardener.

Issue: #3321

Notes

Tested on Mac in zsh shell

@Nereboss Nereboss linked an issue Oct 23, 2023 that may be closed by this pull request
inputFile = tempMgOutput
if (processExitCode != 0) {
throw InternalException("Error while executing metric gardener! Process returned with status $processExitCode.")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to create a custom exception class for MetricGardener errors.

Copy link
Collaborator

@ce-bo ce-bo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@Nereboss Nereboss force-pushed the fix/3321/fix-stuck-metric-gardener-importer branch from 726588b to 41fe258 Compare October 31, 2023 08:39
@sonarcloud
Copy link

sonarcloud bot commented Oct 31, 2023

[CodeCharta Analysis] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@sonarcloud
Copy link

sonarcloud bot commented Oct 31, 2023

[CodeCharta Visualization] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@Nereboss Nereboss merged commit cf6b051 into main Oct 31, 2023
7 checks passed
@Nereboss Nereboss deleted the fix/3321/fix-stuck-metric-gardener-importer branch October 31, 2023 09:14
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.

MetricGardenerImporter stuck on scanning
2 participants