[
https://issues.apache.org/jira/browse/SOLR-16750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17810987#comment-17810987
]
Christine Poerschke commented on SOLR-16750:
--------------------------------------------
Here's details on the distributed search test failure -- {{./gradlew -p
solr/core test --tests TestDistributedGrouping}} -- and note that the
https://github.com/apache/solr/blob/releases/solr/9.4.1/solr/core/src/java/org/apache/solr/search/grouping/distributed/command/GroupConverter.java#L86
code may benefit from some sort of {{instanceof}} check before attempting to
cast.
{code}
2> 4572 ERROR (qtp410205277-67) [ x:collection1] o.a.s.h.RequestHandlerBase
Server exception
2> => java.lang.ClassCastException: class
org.apache.solr.common.EnumFieldValue cannot be cast to class java.lang.Integer
(org.apache.solr.common.EnumFieldValue is in unnamed module of loader 'app';
java.lang.Integer is in module java.base of loader 'bootstrap')
2> at
org.apache.solr.search.grouping.distributed.command.GroupConverter.toMutable(GroupConverter.java:86)
2> java.lang.ClassCastException: class org.apache.solr.common.EnumFieldValue
cannot be cast to class java.lang.Integer
(org.apache.solr.common.EnumFieldValue is in unnamed module of loader 'app';
java.lang.Integer is in module java.base of loader 'bootstrap')
2> at
org.apache.solr.search.grouping.distributed.command.GroupConverter.toMutable(GroupConverter.java:86)
~[main/:?]
2> at
org.apache.solr.search.grouping.distributed.command.TopGroupsFieldCommand.create(TopGroupsFieldCommand.java:162)
~[main/:?]
2> at
org.apache.solr.search.grouping.CommandHandler.execute(CommandHandler.java:149)
~[main/:?]
2> at
org.apache.solr.handler.component.QueryComponent.doProcessGroupedDistributedSearchSecondPhase(QueryComponent.java:1558)
~[main/:?]
2> at
org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:409)
~[main/:?]
2> at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:425)
~[main/:?]
{code}
> Grouping on EnumFieldType fields fails
> --------------------------------------
>
> Key: SOLR-16750
> URL: https://issues.apache.org/jira/browse/SOLR-16750
> Project: Solr
> Issue Type: Bug
> Components: Grouping
> Reporter: Tomas Eduardo Fernandez Lobbe
> Priority: Minor
> Labels: newdev
> Time Spent: 10m
> Remaining Estimate: 0h
>
> For single shard collections, Solr responds with the enum index instead of
> the value. For multi-shard collections, Solr returns a 500 because internally
> it gets a ClassCastException such as:
> {noformat}
> java.lang.ClassCastException: class org.apache.solr.common.EnumFieldValue
> cannot be cast to class java.lang.Integer
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]