You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Manikumar (JIRA)" <ji...@apache.org> on 2018/06/26 09:47:00 UTC

[jira] [Resolved] (KAFKA-2215) Improve Randomness for ConsoleConsumer

     [ https://issues.apache.org/jira/browse/KAFKA-2215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Manikumar resolved KAFKA-2215.
------------------------------
    Resolution: Not A Problem

Closing inactive issue. Also the default for console consumer's enable.auto.commit is set to false for auto-generated group Ids. 

> Improve Randomness for ConsoleConsumer
> --------------------------------------
>
>                 Key: KAFKA-2215
>                 URL: https://issues.apache.org/jira/browse/KAFKA-2215
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: Fabian Lange
>            Priority: Major
>
> Right now the console consumer does a new Random().nextInt(100_000)
> https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/tools/ConsoleConsumer.scala#L123
> I would propose to use UUID.randomUUID().toString() instead.
> I know this is quite edgy, but Random has shown its quirks from time to time.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)