Jie Yu created MESOS-993:
----------------------------

             Summary: Performance issue during replicated log catch-up when the 
log positions are large
                 Key: MESOS-993
                 URL: https://issues.apache.org/jira/browse/MESOS-993
             Project: Mesos
          Issue Type: Bug
    Affects Versions: 0.17.0
            Reporter: Jie Yu
            Assignee: Jie Yu
             Fix For: 0.18.0


Inside Replica::persist(const Action& action), we update the in-memory 'holes' 
data structure

  // Update holes if we just wrote many positions past the last end.
  for (uint64_t position = end + 1; position < action.position(); position++) {
    holes.insert(position);
  }

During catch-up (starts with an empty log), if the 'position' is very large, we 
may spend a lot of time in this loop. Also, the data structure 'holes' might 
become extremely large.




--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to