[
https://issues.apache.org/jira/browse/STREAMS-89?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14004683#comment-14004683
]
Matt Franklin commented on STREAMS-89:
--------------------------------------
Turns out the counts were just being updated without proper synchronization.
To prevent against the case where the listener does not actually fire, I
suggest we track the open requests. On close, we interrogate them to see if
they completed and didn't tell us.
> ElasticsearchPersistWriters have incorrect totalOutstanding counts
> ------------------------------------------------------------------
>
> Key: STREAMS-89
> URL: https://issues.apache.org/jira/browse/STREAMS-89
> Project: Streams
> Issue Type: Bug
> Reporter: Matt Franklin
> Assignee: Matt Franklin
>
> The ActionListener in ElasticsearchPersistWriter can fail to fire, resulting
> in an incorrect count of items sent to elasticsearch. This in turn results
> in a Thread interrupt exception as the writer is forcibly terminated on
> shutdown hook.
--
This message was sent by Atlassian JIRA
(v6.2#6252)