lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <>
Subject Re: Solr tlog and soft commit
Date Sun, 15 Mar 2015 16:54:37 GMT
I have to ask what problem you're trying to solve, or is this just for
background? Your understanding looks fine to me.


On Sun, Mar 15, 2015 at 9:44 AM, vidit.asthana <> wrote:
> Thanks Eric. Its super helpful!
> So here's my understanding so far:
> 1. On update, write the doc to tlog(which will be used only for recovery)
> 2. As soon as the docs size becomes greater than ramBufferSize, flush it to
> the latest segment inside the index directory.
> 3. Upto this point, even though the index directory size will grow, but the
> docs are neither searchable not durable.
> 4. As soon as I issue a soft commit, the documents inside the latest segment
> becomes searchable, but they are still not merged with main index. Hence
> they are still not durable.
> 5. At this point if a node goes down, the docs will still needs to be
> replayed from the tlog, before they are searchable. If someone deletes tlogs
> before starting that node, then the documents are lost. They can't be
> recovered from unclosed segments inside index directory.
> 6. As soon as I issue a hard commit, the docs becomes durable.
> So that means if I increase maxRamBufferSize, then there will be less file
> system access, but more load on memory.
> Please let me know if I get it right so far before I ask further questions?
> --
> View this message in context:
> Sent from the Solr - User mailing list archive at

View raw message