lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sannier Elodie (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-4866) FieldCache insanity with field used as facet and group
Date Wed, 29 May 2013 09:49:20 GMT

    [ https://issues.apache.org/jira/browse/SOLR-4866?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13669122#comment-13669122
] 

Sannier Elodie commented on SOLR-4866:
--------------------------------------

I'm reproducing the problem with the 4.2.1 example with 2 shards.

1) started up solr shards, indexed the example data, and confirmed empty fieldCaches
[sanniere@funlevel-dx example]$ java -Dbootstrap_confdir=./solr/collection1/conf -Dcollection.configName=myconf
-DzkRun -DnumShards=2 -jar start.jar
[sanniere@funlevel-dx example2]$ java -Djetty.port=7574 -DzkHost=localhost:9983 -jar start.jar

2) used both grouping and faceting on the popularity field, then checked the fieldcache insanity
count
[sanniere@funlevel-dx example]$ curl -sS "http://localhost:8983/solr/select?q=*:*&group=true&group.field=popularity"
> /dev/null
[sanniere@funlevel-dx example]$ curl -sS "http://localhost:8983/solr/select?q=*:*&facet=true&facet.field=popularity"
> /dev/null
[sanniere@funlevel-dx example]$ curl -sS "http://localhost:8983/solr/admin/mbeans?stats=true&key=fieldCache&wt=json&indent=true"
| grep "entries_count\|insanity_count"
          "entries_count":10,
          "insanity_count":2,

          "insanity#0":"VALUEMISMATCH: Multiple distinct value objects for SegmentCoreReader(owner=_g(4.2.1):C1)+popularity\n\t'SegmentCoreReader(owner=_g(4.2.1):C1)'=>'popularity',class
org.apache.lucene.index.SortedDocValues,0.5=>org.apache.lucene.search.FieldCacheImpl$SortedDocValuesImpl#12129794\n\t'SegmentCoreReader(owner=_g(4.2.1):C1)'=>'popularity',int,null=>org.apache.lucene.search.FieldCacheImpl$IntsFromArray#12298774\n\t'SegmentCoreReader(owner=_g(4.2.1):C1)'=>'popularity',int,org.apache.lucene.search.FieldCache.NUMERIC_UTILS_INT_PARSER=>org.apache.lucene.search.FieldCacheImpl$IntsFromArray#12298774\n",
          "insanity#1":"VALUEMISMATCH: Multiple distinct value objects for SegmentCoreReader(owner=_f(4.2.1):C9)+popularity\n\t'SegmentCoreReader(owner=_f(4.2.1):C9)'=>'popularity',int,org.apache.lucene.search.FieldCache.NUMERIC_UTILS_INT_PARSER=>org.apache.lucene.search.FieldCacheImpl$IntsFromArray#16648315\n\t'SegmentCoreReader(owner=_f(4.2.1):C9)'=>'popularity',int,null=>org.apache.lucene.search.FieldCacheImpl$IntsFromArray#16648315\n\t'SegmentCoreReader(owner=_f(4.2.1):C9)'=>'popularity',class
org.apache.lucene.index.SortedDocValues,0.5=>org.apache.lucene.search.FieldCacheImpl$SortedDocValuesImpl#1130715\n"}}},
    "HIGHLIGHTING",{},
    "OTHER",{}]}

Elodie
                
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message