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

use a single blob service #8

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

Conversation

mkleine
Copy link

@mkleine mkleine commented Oct 2, 2024

avoid memory leak due to cleanup thread started by each TempFileFactory instance

it would be preferable to use com.coremedia.cms.common.plugins.beans_for_plugins2.CommonBeansForPluginsConfiguration and not to create a fallback blob service, but that's currently prevented by com.coremedia.contenthub.api.BaseFileSystemConfiguration (see https://coremediagmbh.atlassian.net/browse/CMS-25756). This temporary fix relies on the private API dependency com.coremedia.cms.common.plugins.beans_for_plugins_container.CommonBeansForPluginsContainer

Found this while working on https://coremedia.zendesk.com/agent/tickets/87572 and looking at https://coremedia.zendesk.com/agent/tickets/79089

The very same problem exists in other content hub adapter implementations as well:

Note: I didn't test this fix, but it's definitely not a good idea to create temporary TempFileFactory instances.

avoid memory leak due to cleanup thread started by each TempFileFactory instance

it would be preferable to use com.coremedia.cms.common.plugins.beans_for_plugins2.CommonBeansForPluginsConfiguration and not to create a fallback blob service, but that's currently prevented by com.coremedia.contenthub.api.BaseFileSystemConfiguration
Copy link
Contributor

@JensDallmann JensDallmann left a comment

Choose a reason for hiding this comment

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

Interesting, I do not have that much experience with plugins and the CommonBeanForPlugins is good to know.

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.

3 participants