[ 
https://issues.apache.org/jira/browse/KAFKA-8841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jason Gustafson resolved KAFKA-8841.
------------------------------------
    Resolution: Fixed

> Optimize Partition.maybeIncrementLeaderHW
> -----------------------------------------
>
>                 Key: KAFKA-8841
>                 URL: https://issues.apache.org/jira/browse/KAFKA-8841
>             Project: Kafka
>          Issue Type: Improvement
>            Reporter: Jason Gustafson
>            Assignee: Lucas Bradstreet
>            Priority: Major
>
> We've observed a noticeable cost in `Partition.maybeIncrementLeaderHW` during 
> profiling. Basically just all the unnecessary collection copies and 
> iterations over the replica set. Since this is on the hot path for handling 
> follower fetches, we should probably put some effort into optimizing this. 
> A couple ideas:
>  # Don't do all those copies.
>  # Checking whether hw needs incrementing is not necessary unless an end 
> offset actually changed



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

Reply via email to