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 coverity reported resource leaks in StreamDBClient #171

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

elliVM
Copy link
Contributor

@elliVM elliVM commented Jan 16, 2025

Use try-with resources to fix reported high-severity resource leaks reported by coverity.

@elliVM elliVM self-assigned this Jan 16, 2025
@elliVM elliVM linked an issue Jan 16, 2025 that may be closed by this pull request
Copy link
Contributor

@51-code 51-code left a comment

Choose a reason for hiding this comment

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

New changes are good, approved. One question about an old comment.

.execute();
try (
final CreateIndexIncludeStep indexStep = ctx.createIndex(GetArchivedObjectsFilterTable.hostIndex)
//.on(FILTER_TABLE, directory, host_id, tag, stream).execute(); // FIXME this happens only on dev kube due to old mariadb: Index column size too large. The maximum column size is 767 bytes.
Copy link
Contributor

Choose a reason for hiding this comment

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

Any idea what this comment is about? Might be removable or if it's clear what this is referring to, an issue could be created for it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Left out as out of scope for this PR.
Created a separate issue 172 about the FIXME comment.

@elliVM elliVM requested a review from kortemik January 16, 2025 11:19
@ronja-ui ronja-ui added the review Issues or pull requests waiting for a review label Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review Issues or pull requests waiting for a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix resource leaks in StreamDBClient.java class
4 participants