You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Neha Narkhede (JIRA)" <ji...@apache.org> on 2012/07/26 23:50:35 UTC

[jira] [Created] (KAFKA-423) On startup, highwatermark file should be written to only after all local replicas have been started

Neha Narkhede created KAFKA-423:
-----------------------------------

             Summary: On startup, highwatermark file should be written to only after all local replicas have been started
                 Key: KAFKA-423
                 URL: https://issues.apache.org/jira/browse/KAFKA-423
             Project: Kafka
          Issue Type: Bug
    Affects Versions: 0.8
            Reporter: Neha Narkhede
            Assignee: Neha Narkhede


On startup, the replica manager starts local replicas for all partitions on disk. At the same time, it also schedules the highwatermark checkpoint thread. The thread takes the in-memory local replica data structure and writes the highwatermark values for each of those to disk. However, the replica manager should checkpoint data only after the internal local replica data structures are populated or else the highwatermark file can end up being overwritten with empty or fewer values.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (KAFKA-423) On startup, highwatermark file should be written to only after all local replicas have been started

Posted by "Neha Narkhede (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/KAFKA-423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Neha Narkhede resolved KAFKA-423.
---------------------------------

    Resolution: Not A Problem

This is not a bug in the current code since KafkaZookeeper starts up before ReplicaManager and bootstraps all local replicas before ReplicaManager schedules the highwatermark checkpoint thread.
                
> On startup, highwatermark file should be written to only after all local replicas have been started
> ---------------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-423
>                 URL: https://issues.apache.org/jira/browse/KAFKA-423
>             Project: Kafka
>          Issue Type: Bug
>    Affects Versions: 0.8
>            Reporter: Neha Narkhede
>            Assignee: Neha Narkhede
>
> On startup, the replica manager starts local replicas for all partitions on disk. At the same time, it also schedules the highwatermark checkpoint thread. The thread takes the in-memory local replica data structure and writes the highwatermark values for each of those to disk. However, the replica manager should checkpoint data only after the internal local replica data structures are populated or else the highwatermark file can end up being overwritten with empty or fewer values.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira