[
https://issues.apache.org/jira/browse/SOLR-4866?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13668580#comment-13668580
]
Hoss Man commented on SOLR-4866:
--------------------------------
Sannier, i was unable to reproduce the problem you described using 4.2.1 (or
4.3, or the current trunk).
Steps i tried to reproduce problem...
1) modified 4.2.1 example such that the "int" fieldType and "popularity" field
matched your merchantid exactly...
{noformat}
- <fieldType name="int" class="solr.TrieIntField" precisionStep="0"
positionIncrementGap="0"/>
+ <fieldType name="int" class="solr.TrieIntField" precisionStep="0"
positionIncrementGap="0" sortMissingLast="true"/>
{noformat}
2) started up solr, indexed the example data, and confirmed empty fieldCaches...
{noformat}
hossman@frisbee:~/lucene/lucene-4.2.1_tag/solr/example/exampledocs$ java -jar
post.jar *.xml
...
hossman@frisbee:~/lucene/lucene-4.2.1_tag/solr/example/exampledocs$ curl -sS
"http://localhost:8983/solr/admin/mbeans?stats=true&key=fieldCache&wt=json&indent=true"
| grep "entries_count\|insanity_count"
"entries_count":0,
"insanity_count":0}}},
{noformat}
3) used both grouping and faceting on the popularity field, then checked the
fieldcache insanity count..
{noformat}
hossman@frisbee:~/lucene/lucene-4.2.1_tag/solr/example/exampledocs$ curl -sS
"http://localhost:8983/solr/select?q=*:*&facet=true&facet.field=popularity" >
/dev/null
hossman@frisbee:~/lucene/lucene-4.2.1_tag/solr/example/exampledocs$ curl -sS
"http://localhost:8983/solr/select?q=*:*&group=true&group.field=popularity" >
/dev/null
hossman@frisbee:~/lucene/lucene-4.2.1_tag/solr/example/exampledocs$ curl -sS
"http://localhost:8983/solr/admin/mbeans?stats=true&key=fieldCache&wt=json&indent=true"
| grep "entries_count\|insanity_count"
"entries_count":4,
"insanity_count":0}}},
{noformat}
4) re-indexed a few docs to ensure i'd get multiple segments (in case that was
neccessary to reproduce) and checked the insanity count again...
{noformat}
hossman@frisbee:~/lucene/lucene-4.2.1_tag/solr/example/exampledocs$ java -jar
post.jar sd500.xml
...
hossman@frisbee:~/lucene/lucene-4.2.1_tag/solr/example/exampledocs$ curl -sS
"http://localhost:8983/solr/select?q=*:*&group=true&group.field=popularity" >
/dev/null
hossman@frisbee:~/lucene/lucene-4.2.1_tag/solr/example/exampledocs$ curl -sS
"http://localhost:8983/solr/select?q=*:*&facet=true&facet.field=popularity" >
/dev/null
hossman@frisbee:~/lucene/lucene-4.2.1_tag/solr/example/exampledocs$ curl -sS
"http://localhost:8983/solr/admin/mbeans?stats=true&key=fieldCache&wt=json&indent=true"
| grep "entries_count\|insanity_count"
"entries_count":8,
"insanity_count":0}}},
{noformat}
...still no sign of "insanity"
So i suspect there must be something else going on in your setup? are you sure
you don't have any other types of queries that might be using hte field cache
in an inconsistent way?
(FWIW: even though i couldn't reproduce the insanity inconsistency you
described, i'm still confuse/suspicious about hte number of field cache entries
created for each segment when accessing a single field ... so i'm going to try
dig into that a little bit to verify there is no related bug there -- it might
be expected given the way FieldCache and DocValues have evolved, but i'd like
to verify that)
> FieldCache insanity with field used as facet and group
> ------------------------------------------------------
>
> Key: SOLR-4866
> URL: https://issues.apache.org/jira/browse/SOLR-4866
> Project: Solr
> Issue Type: Bug
> Reporter: Sannier Elodie
> Priority: Minor
>
> I am using the Lucene FieldCache with SolrCloud 4.2.1 and I have "insane"
> instances for a field used as facet and group field.
> schema fieldType & filed declaration for my
> merchantid field :
> <fieldType name="int" class="solr.TrieIntField" precisionStep="0"
> sortMissingLast="true" omitNorms="true" positionIncrementGap="0"/>
> <field name="merchantid" type="int" indexed="true" stored="true"
> required="true"/>
> The mbean stats output shows the field cache insanity after executing queries
> like :
> /select?q=*:*&facet=true&facet.field=merchantid
> /select?q=*:*&group=true&group.field=merchantid
> <int name="insanity_count">25</int>
> <str name="insanity#0">VALUEMISMATCH: Multiple distinct value objects for
> SegmentCoreReader(owner=_1z1(4.2.1):C3916)+merchantid
> 'SegmentCoreReader(owner=_1z1(4.2.1):C3916)'=>'merchantid',class
> org.apache.lucene.index.SortedDocValues,0.5=>org.apache.lucene.search.FieldCacheImpl$SortedDocValuesImpl#1517585400
>
> 'SegmentCoreReader(owner=_1z1(4.2.1):C3916)'=>'merchantid',int,org.apache.lucene.search.FieldCache.NUMERIC_UTILS_INT_PARSER=>org.apache.lucene.search.FieldCacheImpl$IntsFromArray#781169939
>
> 'SegmentCoreReader(owner=_1z1(4.2.1):C3916)'=>'merchantid',int,null=>org.apache.lucene.search.FieldCacheImpl$IntsFromArray#781169939
> </str>
> ...
> see http://markmail.org/thread/7gctyh6vn3eq5jso
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]