----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/20272/#review40614 -----------------------------------------------------------
core/src/main/scala/kafka/server/KafkaApis.scala <https://reviews.apache.org/r/20272/#comment73672> We can call it addOrUpdatePartitionInfo (I think it needs to be called from updateCache as well) - Joel Koshy On April 11, 2014, 9:03 p.m., Jun Rao wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/20272/ > ----------------------------------------------------------- > > (Updated April 11, 2014, 9:03 p.m.) > > > Review request for kafka. > > > Bugs: KAFKA-1356 > https://issues.apache.org/jira/browse/KAFKA-1356 > > > Repository: kafka > > > Description > ------- > > Fix the way we update controller epoch during UpdateMetadataRequest since the > check and set is not atomic. > > > Diffs > ----- > > core/src/main/scala/kafka/server/KafkaApis.scala > d96229e2d4aa7006b0dbd81055ce5a2459d8758c > core/src/main/scala/kafka/server/ReplicaManager.scala > 0f5aaa9888d6c0ca0b073f4742bee14ad72d0484 > > Diff: https://reviews.apache.org/r/20272/diff/ > > > Testing > ------- > > > Thanks, > > Jun Rao > >