walnut1014 / luke

Automatically exported from code.google.com/p/luke
0 stars 0 forks source link

When selecting "open in Read-Only mode" for a path (in the GUI), it appears that its not being opened read only #63

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Choose your path
2. Select "Open in Read-Only mode"
3. Run an app performing indexing on the directory you will be opening from 
step #1
4. When the app is indexing, click "OK" from the GUI.
5. Receive the exception (from my app):  
"org.apache.lucene.util.SetOnce$AlreadySetException: The object cannot be set 
twice!"

What is the expected output? What do you see instead?

Luke should open in read-only mode.

What version of the product are you using? On what operating system?

RHEL 6.x, Like v3.5.0

Please provide any additional information below.

If I run command line using "java -jar ukeall-3.5.0.jar -ro -index [path to 
index]" this works fine and is opened read-only, no exceptions raised.  Please 
note, [path to index] is really my path to index (for example 
/home/sfloess/foo).

Original issue reported on code.google.com by flossw...@gmail.com on 22 Aug 2012 at 12:45

GoogleCodeExporter commented 8 years ago
What version of Lucene does your application use? Can you please provide more 
of the stacktrace from your app, at least all levels that involve Lucene/Solr 
APIs? 

Original comment by sig...@gmail.com on 22 Aug 2012 at 1:18

GoogleCodeExporter commented 8 years ago
I believe we are using:
  - lucene-core v 3.4.0
  - lucent-analyzers v 3.4.0
  - lucene-queries v 3.6.0

Here is the stack trace:
    org.apache.lucene.util.SetOnce$AlreadySetException: The object cannot be set twice!
        at org.apache.lucene.util.SetOnce.set(SetOnce.java:69)
        at org.apache.lucene.index.MergePolicy.setIndexWriter(MergePolicy.java:271)
        at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1104)

Please note, when I run Luke command line (with the -ro option) everything 
works fine.  It is only when I use the GUI that this happens...

Original comment by flossw...@gmail.com on 22 Aug 2012 at 6:22

GoogleCodeExporter commented 8 years ago
I believe I spoke too soon.  I am using the command line with the -ro option 
and the issue arose again :(

I am running Luke as follows:

java -jar /home/sfloess/Tools/luke/lukeall-3.5.0.jar -ro -index /tmp/attachment

Original comment by flossw...@gmail.com on 30 Aug 2012 at 8:35