> On March 20, 2014, 8:20 p.m., Neha Narkhede wrote:
> > core/src/main/scala/kafka/cluster/Partition.scala, line 93
> > <https://reviews.apache.org/r/19490/diff/1/?file=530482#file530482line93>
> >
> >     This creates new File objects on every single getOrCreateReplica. 
> > During leader changes, that would create too many File objects all at once. 
> > If the purpose is to get a standardized File name, can we just do new 
> > File(dir).getName when we put the entry in highWatermarkCheckpoints?

Makes sense! Had the same thought briefly but didn't know the frequency of the 
call.


- Timothy


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


On March 20, 2014, 7:49 p.m., Timothy Chen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/19490/
> -----------------------------------------------------------
> 
> (Updated March 20, 2014, 7:49 p.m.)
> 
> 
> Review request for kafka.
> 
> 
> Bugs: KAFKA-1315
>     https://issues.apache.org/jira/browse/KAFKA-1315
> 
> 
> Repository: kafka
> 
> 
> Description
> -------
> 
> KAFKA-1315 Fix ReplicaManager directory matching in checkpointing
> 
> 
> Diffs
> -----
> 
>   core/src/main/scala/kafka/cluster/Partition.scala 
> 0b88f14c4855b27242906cd45930bae501e26226 
>   core/src/main/scala/kafka/server/ReplicaManager.scala 
> f16fbe672861cb3ea866f80a835e7e502aa9c6ec 
>   core/src/test/scala/unit/kafka/server/HighwatermarkPersistenceTest.scala 
> 02c188a412995f876dd6616d70027b84c07eb264 
>   core/src/test/scala/unit/kafka/server/ReplicaManagerTest.scala PRE-CREATION 
> 
> Diff: https://reviews.apache.org/r/19490/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Timothy Chen
> 
>

Reply via email to