Mailing List Archive

DO NOT REPLY [Bug 11109] - Search lock file location should be configurable and favored over disableLuceneLocks property
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11109>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11109

Search lock file location should be configurable and favored over disableLuceneLocks property

otis@apache.org changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Priority|Other |Low



------- Additional Comments From otis@apache.org 2002-09-09 01:36 -------
Could you please clarify the following for me:
1. Why and how would indexing corrupt a search running at the same time?
If the index is simply being modified, this shouldn't be a problem.
If your indexing application does more with the index, such as moving or
removing the index directory, then this would be a problem.

2. What is "indexing log file"? Is that supposed to be "indexing LOCK file"?

So you esentially want to somehow specify a directory to which Lucene should
write various lock files, such as: luceneLockDir=/tmp ?

But would that really work on CD-ROMs? I don't know enough about CD-ROMs, but I
think this wouldn't work for CD-ROMs, as there would be no writable file system
anywhere on CD-ROM, so lock file creation would have to be _completely disabled_
for read-only media, such as CD-ROMs. Changing the lock file directory wouldn't
do it for CD-ROMs, would it?

I am not being sarcastic, the questions are for real :)

Regarding the 1.3 release - yes, I think it will be a while before 1.3 is released.

--
To unsubscribe, e-mail: <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>
DO NOT REPLY [Bug 11109] - Search lock file location should be configurable and favored over disableLuceneLocks property [ In reply to ]
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11109>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11109

Search lock file location should be configurable and favored over disableLuceneLocks property





------- Additional Comments From aguenther@collab.net 2002-09-09 05:57 -------
Otis,
First, I am glad that you responded at all. Second, I am pretty disappointed
about your response, which doesn't really encourage people to participate in
open source development regarding usage and feedback. Recall that it's the user
community, which makes open source successfull and it would be more than polite
trying to understand the outside world using such software. However, I am not
very keen in debating these things since I am more interested in a solution to
our problem.

I probably didn't quite articulate myself and therefore will try to give you a
more detailed description of our situation:

We're using Lucene to index mailing lists. For security reasons indexing is
performed with a different UID than a search. This implies that search has
read-only access to our indexed files as well as the folder they reside in. As
we noticed, Lucene writes lock files during search into the same folder where
these index files are located. To turn off lock files through
'disableLuceneLocks' property doesn't seem to be a reasonable solution to us. At
least you must have had a reason to use a lock for search in the first place,
which I guess is to prevent indexing in between. A proposed solution would be to
specify a different location through a property where Lucene could write its
search lock file to.

If you have a better solution to our problem, I am more than interested to
listen to it. Otherwise I would appreciate a statement why a property to specify
a different location is out of the question. At least you didn't respond to that.

Thanks for taking your time,
Andreas

--
To unsubscribe, e-mail: <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>
DO NOT REPLY [Bug 11109] - Search lock file location should be configurable and favored over disableLuceneLocks property [ In reply to ]
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11109>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11109

Search lock file location should be configurable and favored over disableLuceneLocks property





------- Additional Comments From otis@apache.org 2002-09-09 14:25 -------
I am not going to get into a argument here.
Regarding the bug.
I did not say that the property you were asking for is out of question!
I just didn't think it would work for read only media, like CD-ROMs, which you
mentioned in the original bug report.
What you suggest would probably work for you, I agree.

If possible, could you please submit a patch with a unit test?
I am currently very busy with a number of other much bigger things in life, and
this would speed things up.
Thanks.

--
To unsubscribe, e-mail: <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>
DO NOT REPLY [Bug 11109] - Search lock file location should be configurable and favored over disableLuceneLocks property [ In reply to ]
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11109>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11109

Search lock file location should be configurable and favored over disableLuceneLocks property





------- Additional Comments From otis@apache.org 2002-09-09 14:43 -------
I just took a quick look at the Lucene's source.
It looks like commit.lock in IndexReader (used for searches) is made via
(FS)Directory's makeLock method, which makes use of the disableLuceneLocks, so I
think this will disable lock creation during searches. Therefore, your searches
with a different user ID should work if the user has read permissions on the
index directory and files.
Could you please try it and post the results (i.e. error, if you get it)?
Thanks.

--
To unsubscribe, e-mail: <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>
DO NOT REPLY [Bug 11109] - Search lock file location should be configurable and favored over disableLuceneLocks property [ In reply to ]
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11109>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11109

Search lock file location should be configurable and favored over disableLuceneLocks property





------- Additional Comments From aguenther@collab.net 2002-09-09 21:37 -------
Thanks for the quick feedback. We still like to make use of the locking feature
because indexing might happen during a search. But I am happy to suggest a patch
with a JUnit test case. You might want to change it to an enhancement or rather
feature since it seems not a lot of users need that. I'll try to have something
somewhere around october.

Thanks,
Andreas

--
To unsubscribe, e-mail: <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>
DO NOT REPLY [Bug 11109] - Search lock file location should be configurable and favored over disableLuceneLocks property [ In reply to ]
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11109>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11109

Search lock file location should be configurable and favored over disableLuceneLocks property





------- Additional Comments From cutting@apache.org 2002-09-11 22:21 -------
I think you're asking for something reasonable. It should be possible to
construct an FSDirectory that has locking disabled or that uses a different lock
directory without altering global system properties. Would that meet your
needs? If so, can you submit the proposed changes? Otherwise it might be a
while before someone gets to implementing this.

--
To unsubscribe, e-mail: <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>
DO NOT REPLY [Bug 11109] - Search lock file location should be configurable and favored over disableLuceneLocks property [ In reply to ]
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11109>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11109

Search lock file location should be configurable and favored over disableLuceneLocks property





------- Additional Comments From aguenther@collab.net 2002-09-11 23:35 -------
That sounds great. I will provide something as previously suggested.

--
To unsubscribe, e-mail: <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>