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



core/src/main/scala/kafka/controller/ControllerChannelManager.scala
<https://reviews.apache.org/r/20038/#comment71986>

    Quick comment on this:
    
    A better way to do this would be to modify the PartitionStateInfo in
    UpdateMetadataRequest to include a "delete" flag and increment the protocol
    version for UpdateMetadataRequest. The problem with this is that since these
    are intra-cluster requests, roll-back (if required) will be impossible.
    
    This is a general issue with evolving request schemas for intra-cluster
    requests/responses. If such changes are needed, then the steps would be:
    - Check-in a fix with just the schema changes (#1)
    - Check-in feature that uses those changes (#2)
    
    This is assuming that #1 is an innocuous enough change that #1 is almost
    equivalent to the version that precedes it.  If any performance or
    correctness issue is uncovered in #2, then we can roll-back to #1.
    
    I cannot really do the above for this specific issue because the slow-down
    due to logging happened a while ago. We can fix forward though - once this
    is checked in we can modify the request schema and then implement the better
    fix.
    


- Joel Koshy


On April 4, 2014, 6:22 p.m., Joel Koshy wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/20038/
> -----------------------------------------------------------
> 
> (Updated April 4, 2014, 6:22 p.m.)
> 
> 
> Review request for kafka.
> 
> 
> Bugs: KAFKA-1355
>     https://issues.apache.org/jira/browse/KAFKA-1355
> 
> 
> Repository: kafka
> 
> 
> Description
> -------
> 
> Avoid sending all topic metadata on state changes.
> 
> 
> Diffs
> -----
> 
>   core/src/main/scala/kafka/api/LeaderAndIsrRequest.scala 
> 03117377e1cb2ad63e4c7740d97ca9a4f20abeeb 
>   core/src/main/scala/kafka/controller/ControllerChannelManager.scala 
> f17d97603798e803d035f313f0165f11f6d0f2c0 
>   core/src/main/scala/kafka/controller/KafkaController.scala 
> fcabd0da201ccd478f5884bcca9b75a8c8ea8373 
>   core/src/main/scala/kafka/controller/TopicDeletionManager.scala 
> 09f54acc733d49a9be9a9c6633271c190dea1bf0 
>   core/src/main/scala/kafka/server/KafkaApis.scala 
> c068ef69207c351eec413a595f1747c59f8b3983 
> 
> Diff: https://reviews.apache.org/r/20038/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Joel Koshy
> 
>

Reply via email to