Sharing Lucene Index

202 views
Skip to first unread message

Phil Boyd

unread,
Feb 27, 2018, 11:28:16 AM2/27/18
to Repo and Gerrit Discussion
I've been trying to share the /gerrit/index directory by putting it on a shared file system and having 2 Gerrit instances symbolically linked to it. This has not been successful.

I understand that indexing with elasticsearch is meant to be the solution for sharing indexes in multi-master.

What is the reason that the Lucene Index can't be shared? 

Matthias Sohn

unread,
Feb 27, 2018, 11:42:16 AM2/27/18
to Phil Boyd, Repo and Gerrit Discussion
you can only use a single IndexWriter on the same index

citing

"Opening an IndexWriter creates a lock file for the directory in use. Trying to open another IndexWriter on the
same directory will lead to a LockObtainFailedException."


 

Luca Milanesio

unread,
Feb 27, 2018, 11:42:59 AM2/27/18
to Phil Boyd, Luca Milanesio, Repo and Gerrit Discussion
Hi Phil,
it would be used for you to go through Martin's presentation at the last Gerrit User Summit 2017 in London:

He explains very well what can and cannot be shared.

If you are curios on the reasons why Lucene Index can't be shared:

HTH

Luca.

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages