Github user srdo commented on a diff in the pull request:
    --- Diff: 
    @@ -145,6 +154,10 @@ private void initialize(Collection<TopicPartition> 
partitions) {
    +            //Emitted messages for partitions that are no longer assigned 
to this spout can't be acked, and they shouldn't be retried. Remove them from 
    +            Set<TopicPartition> partitionsSet = new HashSet(partitions);
    +            emitted.removeIf((msgId) -> 
    --- End diff --
    The messages should be getting removed from retryService in line 156. It's 
my impression that onPartitionsAssigned will be getting called immediately 
after onPartitionsRevoked, before the current call to poll returns (see

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

Reply via email to