GitHub user hachikuji opened a pull request: https://github.com/apache/kafka/pull/4141
KAFKA-6134: Read partition reassignment lazily on event handling This patch prevents an O(n^2) increase in memory utilization during partition reassignment. Instead of storing the reassigned partitions in the `PartitionReassignment` object (which is added after ever partition reassignment), we read the data fresh from ZK when processing the event. You can merge this pull request into a Git repository by running: $ git pull https://github.com/hachikuji/kafka KAFKA-6134 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/4141.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #4141 ---- commit 5131bb19f6fe7fc1939035c48ead052a0ac967a4 Author: Jason Gustafson <ja...@confluent.io> Date: 2017-10-27T02:01:05Z KAFKA-6134: Read partition reassignment lazily on event handling ---- ---