Replies: 9 comments
-
steps I followed today to recreate this error again: (tried 5-6 times and even on a new machine result into same error) 1.created testFile.txt under c:\wwwcode\src\test\ with content:
Step 2 Output: Step 4 output: Nov 16, 2017 3:46:37 PM org.opensolaris.opengrok.util.Statistics report |
Beta Was this translation helpful? Give feedback.
-
tomcat shouldn't really influence this, since it's read only |
Beta Was this translation helpful? Give feedback.
-
Hi tarzanek, I'm using I see CANNOT DELETE result on files like _1_Lucene50_0.doc in procmon and when I closed the tomcat ran it then it worked so I thought it might be because of opengrok webapp in there. |
Beta Was this translation helpful? Give feedback.
-
Hi @tarzanek , |
Beta Was this translation helpful? Give feedback.
-
In http://lucene.472066.n3.nabble.com/LockFactory-issue-observed-in-lucene-while-getting-instance-of-indexWriter-td4282571.html Mike McCandless says: just be sure the "release" happens in a finally clause. The code in
Now, I don't know if |
Beta Was this translation helpful? Give feedback.
-
Hi @vladak , |
Beta Was this translation helpful? Give feedback.
-
I'd just change the last above mentioned
if this makes sense. Otherwise I'd just move the |
Beta Was this translation helpful? Give feedback.
-
I have one more hypothesis - this is windows - and I saw very weird blocking of open files by windows ... so this might be also it (sometimes windows just blocks a file and doesn't release even after process is stopped, restart is needed) ... but let's start with Vlads suggestion |
Beta Was this translation helpful? Give feedback.
-
@tarzanek @vladak
Lucene code: Let me know if this logic is correct because now it doesn't throw optimize error frequently but it still shows up with a different scenario. |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm using Opengrok version: 1.1-rc13
when reindexing, I get this error
OS: Windows 10
tomcat: 8.5.16/8.5.23
No other indexer is running.
Index command i used: java -jar .\opengrok\lib\opengrok.jar -W C:\wcodeIssue\configuration.xml -c C:\wcodeIssue\ctags.exe -P -S -v -s C:\wcodeIssue\src -d C:\wcodeIssue\data
steps I followed:
what I don't get is why these 6 files were open in tomcat even after the tab is closed is that's normal?
can you please help me out here?
Beta Was this translation helpful? Give feedback.
All reactions