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
| 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 |