StandaloneProcessingUnitContainer is not waiting for a graceful shutdown

Description

The function StandaloneProcessingUnitContainer.main() registers a shutdown hook which is involved when the application is asked to shut down. The hook calls container.close(), interrupts the main thread and exits.
The method close() invoked from the hook interrupts the container manager thread in the method StandaloneContainerRunnable.stop(), but it does not wait for the thread to actually finish the cleanup.
StandaloneProcessingUnitContainer.close() contains a comment "TODO wait till it shuts down".

Workaround

None

Acceptance Test

None

Status

Assignee

Unassigned

Reporter

Ester Atzmon

Labels

None

Priority

Medium

SalesForce Case ID

12566

Fix versions

None

Commitment Version/s

None

Due date

None

Product

XAP

Edition

Open Source

Platform

All
Configure