You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by theduderog <gi...@git.apache.org> on 2016/07/26 18:13:23 UTC

[GitHub] kafka pull request #1667: KAFKA-3993 Console Producer Drops Data

GitHub user theduderog opened a pull request:

    https://github.com/apache/kafka/pull/1667

    KAFKA-3993 Console Producer Drops Data 

    @ijuma Would you mind taking a look?
    
    This fixes the problem for me using this test script.
    
    ```
    export BOOTSTRAP_SERVERS=localhost:9092
    export TOPIC=bar
    export MESSAGES=10000
    ./bin/kafka-topics.sh --zookeeper localhost:2181 --create --partitions 1 --replication-factor 1 --topic "$TOPIC" \
    && echo "acks=all" > /tmp/producer.config \
    && echo "linger.ms=0" >> /tmp/producer.config \
    && seq "$MESSAGES" | ./bin/kafka-console-producer.sh --broker-list "$BOOTSTRAP_SERVERS" --topic "$TOPIC" \
    && ./bin/kafka-console-consumer.sh --bootstrap-server "$BOOTSTRAP_SERVERS" --new-consumer --from-beginning --max-messages "${MESSAGES}" --topic "$TOPIC"
    ```

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/theduderog/kafka KAFKA-3993-close-producer

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/kafka/pull/1667.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1667
    
----
commit 093d2aaaf85a49dbfe1a07a8ea47739909a321b7
Author: Roger Hoover <ro...@gmail.com>
Date:   2016-07-26T18:08:47Z

    Added close to producer

----


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] kafka pull request #1667: KAFKA-3993 Console Producer Drops Data

Posted by theduderog <gi...@git.apache.org>.
Github user theduderog closed the pull request at:

    https://github.com/apache/kafka/pull/1667


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---