GitHub user dguy opened a pull request: https://github.com/apache/kafka/pull/2645
KAFKA-4851: only search available segments during Segments.segments(from, to) restrict the locating of segments in {{Segments#segments(..)}} to only the segments that are currently available, i.e., rather than searching the hashmap for many segments that don't exist. You can merge this pull request into a Git repository by running: $ git pull https://github.com/dguy/kafka session-windows-testing Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/2645.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 #2645 ---- commit fca1a2277fbb7020c42e4e028e8ec03bed3a8335 Author: Damian Guy <damian....@gmail.com> Date: 2017-03-06T17:03:27Z only search available segments ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---