GitHub user ijuma opened a pull request:
https://github.com/apache/kafka/pull/4023
KAFKA-5829: Only delete producer snapshots before the recovery point
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ijuma/kafka
kafka-5829-avoid-reading-older-segments-on-hard-shutdown
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/kafka/pull/4023.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 #4023
commit 2a98d68a85f97507423cc50cd002e2db27a47c60
Author: Ismael Juma
Date: 2017-10-05T13:26:04Z
Several clean ups in Log, LogManager, etc.
commit 291c73e54b808d0c0af57c08107c3c8f357e8188
Author: Ismael Juma
Date: 2017-10-05T13:57:07Z
KAFKA-5829: Only delete producer snapshots before the recovery point
---