[KinoSearch] Thread Safety

Marvin Humphrey marvin at rectangular.com
Wed Mar 17 21:35:58 PDT 2010


On Wed, Mar 17, 2010 at 09:48:12AM +0100, ottaviodin at tiscali.it wrote:
> - Can multiple index searchers read the index files at the same time?

Yes.

> - Can an index writer edit the index while searches are ongoing?

Yes.

> - What happen if multiple index writers try to edit the index at the same
> time?

That's explained in the documentation for Indexer:

    In general, only one Indexer at a time may write to an index safely. If a
    write lock cannot be secured, new() will throw an exception.

    If an index is located on a shared volume, each writer application must
    identify itself by supplying an IndexManager with a unique host id to
    Indexer's constructor or index corruption will occur. See
    KinoSearch::Docs::FileLocking for a detailed discussion.

Best,

Marvin Humphrey




More information about the kinosearch mailing list