You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Gavin Manning (JIRA)" <ji...@apache.org> on 2016/07/12 16:00:22 UTC

[jira] [Created] (KAFKA-3956) MockProducer.send() sends a message before completeNext() or errorNext() are called

Gavin Manning created KAFKA-3956:
------------------------------------

             Summary: MockProducer.send() sends a message before completeNext() or errorNext() are called
                 Key: KAFKA-3956
                 URL: https://issues.apache.org/jira/browse/KAFKA-3956
             Project: Kafka
          Issue Type: Bug
          Components: producer 
    Affects Versions: 0.10.0.0
         Environment: JUnit test
            Reporter: Gavin Manning


I pass false for autoComplete to MockProducer's constructor.
I then call MockProducer.send().
MockProducer.history() now contains that message.

I would expect completeNext() to cause the message to be added to history and errorNext() to *not* add the message to history.




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