apache / apache/lucene

Tools in misc/ like index splitters need to obtain write.lock [LUCENE-5982]

Open
#7,044 1 comment 0 reactions 0 assignees 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

Just to prevent anyone from using these from accidental corruption, we should obtain it.

---
Migrated from [LUCENE-5982](https://issues.apache.org/jira/browse/LUCENE-5982) by Robert Muir (@rmuir)

Contributor guide

Open the contributing guide

Research direction

Start by surveying the tools under misc/, especially the index splitters, and locate how write.lock is obtained elsewhere in Lucene. The work is done when the relevant tools acquire the lock before operating on an index and the existing checks or tests cover protection against accidental corruption.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.