apache / apache/lucene

Simplify / understand IndexWriter/DocumentsWriter synchronization [LUCENE-5006]

Open
#6,070 8 comments 0 reactions 1 assignee Claimed by @s1monw View on GitHub
legacy-jira-priority:Major type:bug
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

The concurrency in IW/DW/BD is terrifying: there are many locks involved, not just intrinsic locks but IW also has fullFlushLock, commitLock, and there are no clear rules about lock order to avoid deadlocks like #6066.

We have to somehow simplify this, and define the allowed concurrent behavior eg when an app calls deleteAll while other threads are indexing.

---
Migrated from [LUCENE-5006](https://issues.apache.org/jira/browse/LUCENE-5006) by Michael McCandless (@mikemccand), 1 vote, updated Aug 19 2013
Attachments: [LUCENE-5006.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-5006/LUCENE-5006.patch) (versions: 3)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.