[ 
https://issues.apache.org/jira/browse/KAFKA-4088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15437963#comment-15437963
 ] 
Jun Rao commented on KAFKA-4088:
--------------------------------

It may be possible to cover this in a unit test. 
ByteBufferMessageSetTest.getMessages() allows us to generate message sets in 
0.9 format. So, we can start a broker, use the log.append() api to insert some 
0.9 message sets. Then, run MirrorMaker to mirror the data to another cluster.

> Add regression check for KAFKA-4073
> -----------------------------------
>
>                 Key: KAFKA-4088
>                 URL: https://issues.apache.org/jira/browse/KAFKA-4088
>             Project: Kafka
>          Issue Type: Test
>            Reporter: Geoff Anderson
>
> The patch for KAFKA-4073 fixed an issue introduced in 0.10.0.1, it may be 
> worth adding a regression test
> Ideally this would be a unit test, but it's not immediately clear how to do 
> so since it's hard to produce a pre-0.10.0 message through the producer api 
> in 0.10.0
> If we were to write a system test, it would look something like:
> Setup: 
> - Two small kafka clusters, 0.9.0.X (source), and 0.10.0.X (destination)
> - 0.9.0.X mirror maker from source to destination
> Produce messages with 0.9.X producer to source brokers.
> upgrade source brokers to 0.10.0.1
> upgrade mirror maker to 0.10.0.1 (don't upgrade 0.9 producer)
> This should reveal the problem if run without the fix introduced in KAFKA-4073



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

Reply via email to