Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Feb 2, 2016 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant