You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Jason Gustafson (JIRA)" <ji...@apache.org> on 2017/05/07 22:06:04 UTC
[jira] [Created] (KAFKA-5186) Avoid expensive initialization of
producer state when upgrading
Jason Gustafson created KAFKA-5186:
--------------------------------------
Summary: Avoid expensive initialization of producer state when upgrading
Key: KAFKA-5186
URL: https://issues.apache.org/jira/browse/KAFKA-5186
Project: Kafka
Issue Type: Sub-task
Reporter: Jason Gustafson
Assignee: Jason Gustafson
Priority: Critical
Currently the producer state is always loaded upon broker initialization. If we don't find a snapshot file to load from, then we scan the log segments from the beginning to rebuild the state. Of course, when users upgrade to the new version, there will be no snapshot file, so the upgrade could be quite intensive. It would be nice to avoid this by assuming instead that the absence of a snapshot file means that the producer state should start clean and we can avoid the expensive scanning.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)