safe, but also "process safe": multiple processes may may now search
an index while it is being updated from another process.
Two lock files are used in an index. One is "commit.lock". This is
used to synchronize commits [IndexWriter.close()] with opens
[IndexReader.open()]. Since these actions are short-lived, attempts
to obtain this lock will block for up to ten seconds, which should be
plenty of time, before an exception is thrown.
The second lock file is "write.lock". This is used to enforce the
restriction that only one process should be adding documents to an
index at a time. This is created when an IndexWriter is constructed
and removed when it is closed. If index writing is aborted then this
file must be manually removed. Attempts to index from another process
will immediately throw an exception.
It should be impossible to corrupt an index through the Lucene API.
However if a Lucene process exits unexpectedly it can leave the index
locked. The remedy is simply to, at a time when it is certain that no
processes are accessing the index, remove all lock files.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149595 13f79535-47bb-0310-9956-ffa450edef68
- trying to generate the docs with ant installed and not
the script and am having no luck.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149581 13f79535-47bb-0310-9956-ffa450edef68
- the test target appears to depend on classes in the demo src
tree so i added the dep to the test target. test target
still isn't working but getting there.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149580 13f79535-47bb-0310-9956-ffa450edef68
the build.properties is a bit of a mess. i'll get the test target(s)
working than i'll clean it up.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149578 13f79535-47bb-0310-9956-ffa450edef68
i just wanted to make sure they were visible so they are put in the
appropriate place.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149577 13f79535-47bb-0310-9956-ffa450edef68
building the jar but i will keep testing. figured i would get
everything into the repository.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149575 13f79535-47bb-0310-9956-ffa450edef68
cvs. not sure about the javacc zip file being in our repository, i'm
not sure the license agreement agreed upon with metamata/webgain applies
with the transition to apache.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149569 13f79535-47bb-0310-9956-ffa450edef68