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. ![]()
Issue Links
Activity
Matthew Kent
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Affects Version/s | 0.10.4 [ 10400 ] | |
| Affects Version/s | 0.10.0 [ 10081 ] |
Matthew Kent
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Assignee | Matthew Kent [ mkent ] | |
| Fix Version/s | 0.10.6 [ 10403 ] | |
| Resolution | Fixed [ 1 ] |
Bryan McLellan [Opscode]
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | Resolved [ 5 ] | Reopened [ 4 ] |
| Fix Version/s | 0.10.6 [ 10403 ] |
Matthew Kent
made changes -
| Assignee | Matthew Kent [ mkent ] |
Hippie Hacker
made changes -
| Comment |
[ Should chef-solr and chef expander have different config.rb files in /etc/chef?
ls -la /etc/chef/ | grep solr\\\|expander drwxr-xr-x 2 chef chef 4096 2011-11-09 11:39 solr-jetty -rw-r----- 1 chef chef 2673 2011-11-29 10:45 solr.rb I changed log_location in solr.rb from STDOUT to '/var/log/chef/mysolr.log' and was able to set the logfile for chef-expander... quite confusing. ] |
Bryan McLellan [Opscode]
made changes -
Bryan McLellan [Opscode]
made changes -
Bryan McLellan [Opscode]
made changes -
| Workflow | jira [ 13456 ] | New OSS [ 18121 ] |
Bryan McLellan [Opscode]
made changes -
| Fix Version/s | 10.24.0 [ 11412 ] |
Bryan McLellan [Opscode]
made changes -
| Status | Reopened [ 4 ] | Fix Provided [ 10002 ] |
Bryan McLellan [Opscode]
made changes -
| Status | Fix Provided [ 10002 ] | Fix Reviewed [ 10000 ] |
Bryan McLellan [Opscode]
made changes -
| Status | Fix Reviewed [ 10000 ] | Fix Committed [ 10003 ] |
| Resolution | Fixed [ 1 ] |
Bryan McLellan [Opscode]
made changes -
| Workflow | New OSS [ 18121 ] | OSS: Product Management [ 25922 ] |
| Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
|---|---|---|---|---|---|---|---|---|---|
|
92d 21h 24m | 1 | Matthew Kent | 17/Aug/11 8:04 PM | |||||
|
28d 1h 44m | 1 | Bryan McLellan [Opscode] | 14/Sep/11 9:49 PM | |||||
|
520d 2h 16m | 1 | Bryan McLellan [Opscode] | 16/Feb/13 12:05 AM | |||||
|
2s | 1 | Bryan McLellan [Opscode] | 16/Feb/13 12:05 AM | |||||
|
10s | 1 | Bryan McLellan [Opscode] | 16/Feb/13 12:05 AM |
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