Open an Index- core operations


(SK) #1

As part of core operations course materials, I see a slide for "Open an Index" with below content

Be aware that opening an index can take a few seconds or
even a couple of minutes

-The primary shards may need some updates applied
‒ A Lucene index will be opened (can take time), and the
transaction log will be replayed

I have few questions: When we reopen an index, in what scenarios will the primary gets updated( or may need updates) . When we close an index since we would have done synced flush, why will it replay from transaction logs or even if i dont do sysnced flush before closing an index, wouldn't ES flush everything from translog bfr closing an index?


(Abdon Pijpelink) #2

You are right: when you close an index we do advise you to do a synced flush. It's not mandatory though, and that's what this slide warns you about. When you close an index without doing a synced flush, it's not unlikely that the translog will have to be replayed for that index when you reopen it. Those transactions in the translog are the updates to the primary shards that this slide mentions.


(SK) #3

Thanks for your reply


(system) #4

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.