You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2017/04/16 19:49:04 UTC
svn commit: r1791626 - in /ofbiz/branches:
release15.12/specialpurpose/solr/home/solrdefault/conf/solrconfig.xml
release16.11/
release16.11/specialpurpose/solr/home/solrdefault/conf/solrconfig.xml
Author: jleroux
Date: Sun Apr 16 19:49:04 2017
New Revision: 1791626
URL: http://svn.apache.org/viewvc?rev=1791626&view=rev
Log:
"Applied fix from trunk framework BY HAND for revision: 1791625 "
------------------------------------------------------------------------
Fixed: Could not obtain Lock on lucene index Lock
(OFBIZ-7265)
Problem:
I found this message in error.log
xer_default_products
DocumentIndexer
E
Could not obtain Lock on lucene index Lock held by this virtual machine:
C:\projectASF-Mars\ofbiz\runtime\indexes\products\write.lock
Investigation:
I am able to reproduce this on my dev machine.
Here is the steps to regenerate it:
1. Go to https://localhost:8443/content/control/AdminIndex
2. Click on Index Products button.
Solution:
As per my analysis, the reason of error is write lock on lucene indexes
(created by lucene indexing process in lucene component) by Solr.
Have a look on specialpurpose/solr/home/solrdefault/conf/solrconfig.xml line:
<dataDir>${solr.data.dir:runtime/indexes}</dataDir>
Should point to:
<dataDir>${solr.data.dir:specialpurpose/solr/home/solrdefault/runtime/indexes/}
</dataDir>
Solr currently pointing to lucene indexes and creating a lock on it.
We can't index products anymore using lucene indexing as it has lock from Solr.
So currently all the search results we can see on Solr Search
https://localhost:8443/solr/#/solrdefault/query
is lucene indexed results.
We have not created any indexes using Solr itself. Thanks
Thanks: Amardeep Singh Jhajj who did all the work
------------------------------------------------------------------------
Modified:
ofbiz/branches/release15.12/specialpurpose/solr/home/solrdefault/conf/solrconfig.xml
ofbiz/branches/release16.11/ (props changed)
ofbiz/branches/release16.11/specialpurpose/solr/home/solrdefault/conf/solrconfig.xml
Modified: ofbiz/branches/release15.12/specialpurpose/solr/home/solrdefault/conf/solrconfig.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release15.12/specialpurpose/solr/home/solrdefault/conf/solrconfig.xml?rev=1791626&r1=1791625&r2=1791626&view=diff
==============================================================================
--- ofbiz/branches/release15.12/specialpurpose/solr/home/solrdefault/conf/solrconfig.xml (original)
+++ ofbiz/branches/release15.12/specialpurpose/solr/home/solrdefault/conf/solrconfig.xml Sun Apr 16 19:49:04 2017
@@ -101,7 +101,7 @@
replication is in use, this should match the replication
configuration.
-->
- <dataDir>${solr.data.dir:runtime/indexes}</dataDir>
+ <dataDir>${solr.data.dir:plugins/solr/home/solrdefault/runtime/indexes/}</dataDir>
<!-- The DirectoryFactory to use for indexes.
Propchange: ofbiz/branches/release16.11/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Sun Apr 16 19:49:04 2017
@@ -10,5 +10,5 @@
/ofbiz/branches/json-integration-refactoring:1634077-1635900
/ofbiz/branches/multitenant20100310:921280-927264
/ofbiz/branches/release13.07:1547657
-/ofbiz/ofbiz-framework/trunk:1783202,1783388,1784549,1784558,1784708,1785882,1785925,1786079,1786214,1786525,1787047,1787133,1787176,1787535,1787906-1787911,1787949,1789665,1789863,1789874,1790810,1791277,1791288,1791342,1791346,1791490,1791496
+/ofbiz/ofbiz-framework/trunk:1783202,1783388,1784549,1784558,1784708,1785882,1785925,1786079,1786214,1786525,1787047,1787133,1787176,1787535,1787906-1787911,1787949,1789665,1789863,1789874,1790810,1791277,1791288,1791342,1791346,1791490,1791496,1791625
/ofbiz/trunk:1770481,1770490,1770540,1771440,1771448,1771516,1771935,1772346,1772880,1774772,1775441,1779724,1780659,1781109,1781125,1781979,1782498,1782520
Modified: ofbiz/branches/release16.11/specialpurpose/solr/home/solrdefault/conf/solrconfig.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release16.11/specialpurpose/solr/home/solrdefault/conf/solrconfig.xml?rev=1791626&r1=1791625&r2=1791626&view=diff
==============================================================================
--- ofbiz/branches/release16.11/specialpurpose/solr/home/solrdefault/conf/solrconfig.xml (original)
+++ ofbiz/branches/release16.11/specialpurpose/solr/home/solrdefault/conf/solrconfig.xml Sun Apr 16 19:49:04 2017
@@ -101,7 +101,7 @@
replication is in use, this should match the replication
configuration.
-->
- <dataDir>${solr.data.dir:runtime/indexes}</dataDir>
+ <dataDir>${solr.data.dir:plugins/solr/home/solrdefault/runtime/indexes/}</dataDir>
<!-- The DirectoryFactory to use for indexes.