Skip to content
This repository has been archived by the owner on Jun 7, 2021. It is now read-only.

SWARM-610: The wildfly-self-contained.d directory lingers #217

Merged
merged 1 commit into from Nov 14, 2016

Conversation

heiko-braun
Copy link
Contributor

  • Have you followed the guidelines in our Contributing document?
  • Have you created a JIRA and used it in the commit message?
  • Have you checked to ensure there aren't other open Pull Requests for the same issue?
  • Have you built the project locally prior to submission with mvn clean install?

Motivation
Some files lingers in the tmp directory when the process stops

Modifications

Change the WF Core StandaloneContainer to manage the tmp directory explicitly and provide a stop() to shutdown the container.

Result

All allocated tmp files will be properly removed when Swarm stops.

@@ -43,6 +43,7 @@
<version.org.jboss.msc.jboss-msc>1.2.6.Final</version.org.jboss.msc.jboss-msc>
<version.jboss-logmanager-ext>1.0.0.Alpha3</version.jboss-logmanager-ext>


Copy link
Contributor Author

Choose a reason for hiding this comment

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

This shouldn't be here, but since I am travelling this week, maybe we can just it ignore it?

this.serviceContainer.addTerminateListener(info -> latch.countDown());
this.serviceContainer.shutdown();

latch.await();
Copy link
Member

Choose a reason for hiding this comment

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

As we're not using this.serviceContainer as part of the stop() anymore, do we even need to hang onto the object?

Looks like, from a quick glance, that we can remove the instance from the class and use locally on start

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, good idea

@heiko-braun
Copy link
Contributor Author

i've included @kenfinnigan suggestions. retest this please

@heiko-braun
Copy link
Contributor Author

Ah damn, i've pushed the changes to #218. So if you merged this one before #218, you get the changes included.

Some files lingers in the tmp directpry when the process stops

Modifications

Change the StandaloneContainerImpl to manage the tmp directory explicitly and provide a stop() to shutdown the container.

Result

All allocated tmp files will be properly removed when Swarm stops.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
2 participants