> On Oct. 4, 2014, 11:28 p.m., Neha Narkhede wrote:
> > Can you try to add a unit test for this?

I added unit test under LogTest. This test very basic its just adds messages to 
file until the file reaches Int.Max. 
This will result in couple of issues first being atleast having 2G+ tmp space 
and also adds atleast 1 min to test execution latency.


- Sriharsha


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/26346/#review55455
-----------------------------------------------------------


On Oct. 5, 2014, 3:17 a.m., Sriharsha Chintalapani wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/26346/
> -----------------------------------------------------------
> 
> (Updated Oct. 5, 2014, 3:17 a.m.)
> 
> 
> Review request for kafka.
> 
> 
> Bugs: KAFKA-1670
>     https://issues.apache.org/jira/browse/KAFKA-1670
> 
> 
> Repository: kafka
> 
> 
> Description
> -------
> 
> KAFKA-1670. Corrupt log files for segment.bytes values close to Int.MaxInt.
> 
> 
> Diffs
> -----
> 
>   core/src/main/scala/kafka/log/Log.scala 
> 0ddf97bd30311b6039e19abade41d2fbbad2f59b 
>   core/src/test/scala/unit/kafka/log/LogTest.scala 
> 577d102fc2eb6bb1a72326141ecd431db6d66f04 
> 
> Diff: https://reviews.apache.org/r/26346/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Sriharsha Chintalapani
> 
>

Reply via email to