[
https://issues.apache.org/jira/browse/SAMZA-1665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shanthoosh Venkataraman resolved SAMZA-1665.
--------------------------------------------
Resolution: Fixed
Resolved by SAMZA-1730
> Fix race condition when stopping StreamProcessor.
> -------------------------------------------------
>
> Key: SAMZA-1665
> URL: https://issues.apache.org/jira/browse/SAMZA-1665
> Project: Samza
> Issue Type: Bug
> Reporter: Shanthoosh Venkataraman
> Assignee: Shanthoosh Venkataraman
> Priority: Major
>
> When the user thread stops the streamProcessor and onNewJobModelExpired event
> is executed from debounce thread at the same time, we observe the following
> issue:
> A. User thread stops the StreamProcessor which in turn stops the current
> running container.
> B. Before ZkJobCoordinator is shutdown, onNewJobModelExpired is executed from
> debounce thread(which spawns a new container).
> C. User thread stops the ZkJobCoordinator.
> After the StreamProcessor shutdown sequence returns, container thread is
> alive and zkJobCoordinator is dead. This results in a orphaned container when
> stopping stream processor. We were able reproduce this locally.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)