[ 
https://issues.apache.org/jira/browse/SAMZA-744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14654965#comment-14654965
 ] 

Yan Fang commented on SAMZA-744:
--------------------------------

added some comments in the RB. Thank you. :)

> Samza shutdown sequence throws exception
> ----------------------------------------
>
>                 Key: SAMZA-744
>                 URL: https://issues.apache.org/jira/browse/SAMZA-744
>             Project: Samza
>          Issue Type: Bug
>    Affects Versions: 0.10.0, 0.9.1
>            Reporter: Yi Pan (Data Infrastructure)
>            Assignee: Yi Pan (Data Infrastructure)
>             Fix For: 0.10.0
>
>         Attachments: SAMZA-744-0.patch
>
>
> The current shutdown sequence has a problematic sequence for changelog 
> attached stores:
> {code}
>     } finally {
>       info("Shutting down.")
>       shutdownConsumers
>       shutdownTask
>       shutdownProducers
>       shutdownStores
>       shutdownLocalityManager
>       shutdownOffsetManager
>       shutdownMetrics
>       info("Shutdown complete.")
>     }
> {code}
> If the KV-stores has pending writes in cache and a changelog attached, 
> shutdownStores will try to flush the store, which results in invoking 
> producer.send(). However, the producers are already shutdown according to the 
> above sequence. We need to move the shutdownProducers later than any shutdown 
> procedure that would possibly flushing out pending writes to the system 
> streams.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to