Details
-
Type:
Bug
-
Status:
Fix Committed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 0.10.4
-
Fix Version/s: 10.24.0
-
Component/s: Chef Server
-
Labels:
Description
The new solr schema and solr's default value for maxFieldLength (=10000) might skip indexing the attributes of a node when there are to much of them.
To check what's sent to solr, run chef-expander in debug mode.
then use something like this to grep for the data:
grep '<add><doc><field.*</field></doc></add>' /var/log/chef/expander.log
and something like this to roughly count the tokens:
awk '/<add><doc><field.*<\/field><\/doc><\/add>/ {print NF}' /var/log/chef/expander.log
I've been able to trigger the issue on a host with 4096 loop devices (modprobe loop max_loop=4096)
And I've been able to fix it by raising maxFieldLength in the solr config.
As a first step i'd recommend to issue a warning(or error) in expander logs when the number of tokens exceeds solr limits. ![]()
I've got the same problem - my solr server is on debian, and only after this post AND editing file /var/lib/chef/solr/conf/solrconfig.xml and changing i tag mainIndex value maxFieldLength to 100000 (from default 10000) I was able to find ANY windows machine at all!
Completly agree that some warning would be great