[ 
https://issues.apache.org/jira/browse/KAFKA-12459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17300036#comment-17300036
 ] 

Lucas Bradstreet commented on KAFKA-12459:
------------------------------------------

It might be worth considering looking at how much work it'd be to switch these 
tests over to a property testing library as that will give you the seed 
behavior you want, and will give you the additional benefit of shrinking the 
inputs when there's a failure.

> Improve raft simulation tests
> -----------------------------
>
>                 Key: KAFKA-12459
>                 URL: https://issues.apache.org/jira/browse/KAFKA-12459
>             Project: Kafka
>          Issue Type: Sub-task
>            Reporter: Jason Gustafson
>            Priority: Major
>
> A couple small suggestions to improve the event simulation tests (courtesy of 
> [~enether]):
> 1. When a test fails, ensure that the random number seed is displayed in the 
> output so that it can be reproduced.
> 2. Once we have done the first one, then using non-deterministic seeds would 
> be a good idea since we can get a bigger benefit out of repeated builds.
> 3. It is a bit painful today to reproduce failures since each test case runs 
> multiple random seeds. It would be helpful to have a convenient way to run a 
> test with a specific seed.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to