You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Guozhang Wang (JIRA)" <ji...@apache.org> on 2014/12/03 21:03:13 UTC
[jira] [Commented] (KAFKA-1805) Kafka ProducerRecord should
implement equals
[ https://issues.apache.org/jira/browse/KAFKA-1805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14233450#comment-14233450 ]
Guozhang Wang commented on KAFKA-1805:
--------------------------------------
Thanks Thomas for pointing this out, looking forward for your patch.
> Kafka ProducerRecord should implement equals
> --------------------------------------------
>
> Key: KAFKA-1805
> URL: https://issues.apache.org/jira/browse/KAFKA-1805
> Project: Kafka
> Issue Type: Improvement
> Components: producer
> Affects Versions: 0.8.2
> Reporter: Thomas Omans
> Assignee: Jun Rao
> Priority: Minor
>
> I was writing some tests to verify that I am calculating my partitions, topics, keys, and values properly in my producer code and discovered that ProducerRecord does not implement equality.
> This makes tests integrating kafka particularly awkward.
> https://github.com/apache/kafka/blob/0.8.2-beta/clients/src/main/java/org/apache/kafka/clients/producer/ProducerRecord.java
> I can whip up a patch since this is essentially just a value object.
> Thanks,
> Thomas Omans
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)