It will flush buffer to disk as a new segment without opening a new searcher. I guess trans-log will be rotated too, but not sure.
-- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com > 19. jan. 2017 kl. 21.16 skrev Ziyuan Qin <ziyuan_...@apple.com>: > > Hi All, > > I'm trying to understand how Solr works with disk IO during and between hard > commits. Wish you can help me. > > Let's assume Softcommit is turned off. Autocommit is turned on. > > Then during a hard commit: > > 1. The tlog is truncated: A new tlog is started. (Disk IO involved) > 2. The current index segment is closed and flushed. (Disk IO involved) > > Between two hard commits: > 1. new added documents are hosted in Ram buffer first. (defined in > solrconfig, ramBufferSizeMB. No Disk IO involved) > I assume this buffer actually host an open segment in ram, am I right? > 2. What will happen when the ram buffer is full and the time of autocommit is > not reached yet? Will Solr flush the segment in ram to disk anyway? > > Thank you very much, > Atom