You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Steffen Elberg Godskesen (Created) (JIRA)" <ji...@apache.org> on 2011/12/08 12:02:39 UTC

[jira] [Created] (SOLR-2955) Distributed grouping throws IllegalStateException when querying with group.sort=score desc

Distributed grouping throws IllegalStateException when querying with group.sort=score desc
------------------------------------------------------------------------------------------

                 Key: SOLR-2955
                 URL: https://issues.apache.org/jira/browse/SOLR-2955
             Project: Solr
          Issue Type: Bug
          Components: search
    Affects Versions: 3.6, 4.0
         Environment: Mac OS X 10.7.2
Java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11M3527)
Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)
            Reporter: Steffen Elberg Godskesen



To reproduce:

* Start example configuration from 3.6 or 4.0 distribution, and add example .xml documents to index
* Query: http://localhost:8983/solr/select?q=*:*&sort=id%20asc&group=true&group.sort=score%20desc&group.field=manu_id_s&shards=localhost:8983/solr

This will log

{noformat}
Dec 8, 2011 10:01:23 AM org.apache.solr.common.SolrException log
SEVERE: java.lang.IllegalStateException: All required fields must be set
	at org.apache.solr.search.grouping.distributed.command.TopGroupsFieldCommand$Builder.build(TopGroupsFieldCommand.java:94)
	at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:291)
	at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:194)
	.
	.
{noformat}

For other (legal) values of group.sort or without the shards parameter, the query succeeds. 


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


[jira] [Assigned] (SOLR-2955) Distributed grouping throws IllegalStateException when querying with group.sort=score desc

Posted by "Martijn van Groningen (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martijn van Groningen reassigned SOLR-2955:
-------------------------------------------

    Assignee: Martijn van Groningen
    
> Distributed grouping throws IllegalStateException when querying with group.sort=score desc
> ------------------------------------------------------------------------------------------
>
>                 Key: SOLR-2955
>                 URL: https://issues.apache.org/jira/browse/SOLR-2955
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 3.6, 4.0
>         Environment: Mac OS X 10.7.2
> Java version "1.6.0_29"
> Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11M3527)
> Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)
>            Reporter: Steffen Elberg Godskesen
>            Assignee: Martijn van Groningen
>              Labels: collapse, exception, grouping
>         Attachments: SOLR-2955.patch
>
>
> To reproduce:
> * Start example configuration from 3.6 or 4.0 distribution, and add example .xml documents to index
> * Query: http://localhost:8983/solr/select?q=*:*&sort=id%20asc&group=true&group.sort=score%20desc&group.field=manu_id_s&shards=localhost:8983/solr
> This will log
> {noformat}
> Dec 8, 2011 10:01:23 AM org.apache.solr.common.SolrException log
> SEVERE: java.lang.IllegalStateException: All required fields must be set
> 	at org.apache.solr.search.grouping.distributed.command.TopGroupsFieldCommand$Builder.build(TopGroupsFieldCommand.java:94)
> 	at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:291)
> 	at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:194)
> 	.
> 	.
> {noformat}
> For other (legal) values of group.sort or without the shards parameter, the query succeeds. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


[jira] [Updated] (SOLR-2955) Distributed grouping throws IllegalStateException when querying with group.sort=score desc

Posted by "Steffen Elberg Godskesen (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steffen Elberg Godskesen updated SOLR-2955:
-------------------------------------------

    Attachment: SOLR-2955.patch

This patch add a failing unit test
                
> Distributed grouping throws IllegalStateException when querying with group.sort=score desc
> ------------------------------------------------------------------------------------------
>
>                 Key: SOLR-2955
>                 URL: https://issues.apache.org/jira/browse/SOLR-2955
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 3.6, 4.0
>         Environment: Mac OS X 10.7.2
> Java version "1.6.0_29"
> Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11M3527)
> Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)
>            Reporter: Steffen Elberg Godskesen
>              Labels: collapse, exception, grouping
>         Attachments: SOLR-2955.patch
>
>
> To reproduce:
> * Start example configuration from 3.6 or 4.0 distribution, and add example .xml documents to index
> * Query: http://localhost:8983/solr/select?q=*:*&sort=id%20asc&group=true&group.sort=score%20desc&group.field=manu_id_s&shards=localhost:8983/solr
> This will log
> {noformat}
> Dec 8, 2011 10:01:23 AM org.apache.solr.common.SolrException log
> SEVERE: java.lang.IllegalStateException: All required fields must be set
> 	at org.apache.solr.search.grouping.distributed.command.TopGroupsFieldCommand$Builder.build(TopGroupsFieldCommand.java:94)
> 	at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:291)
> 	at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:194)
> 	.
> 	.
> {noformat}
> For other (legal) values of group.sort or without the shards parameter, the query succeeds. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


[jira] [Issue Comment Edited] (SOLR-2955) Distributed grouping throws IllegalStateException when querying with group.sort=score desc

Posted by "Steffen Elberg Godskesen (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13165165#comment-13165165 ] 

Steffen Elberg Godskesen edited comment on SOLR-2955 at 12/8/11 11:43 AM:
--------------------------------------------------------------------------

This patch adds a failing unit test
                
      was (Author: seg):
    This patch add a failing unit test
                  
> Distributed grouping throws IllegalStateException when querying with group.sort=score desc
> ------------------------------------------------------------------------------------------
>
>                 Key: SOLR-2955
>                 URL: https://issues.apache.org/jira/browse/SOLR-2955
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 3.6, 4.0
>         Environment: Mac OS X 10.7.2
> Java version "1.6.0_29"
> Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11M3527)
> Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)
>            Reporter: Steffen Elberg Godskesen
>              Labels: collapse, exception, grouping
>         Attachments: SOLR-2955.patch
>
>
> To reproduce:
> * Start example configuration from 3.6 or 4.0 distribution, and add example .xml documents to index
> * Query: http://localhost:8983/solr/select?q=*:*&sort=id%20asc&group=true&group.sort=score%20desc&group.field=manu_id_s&shards=localhost:8983/solr
> This will log
> {noformat}
> Dec 8, 2011 10:01:23 AM org.apache.solr.common.SolrException log
> SEVERE: java.lang.IllegalStateException: All required fields must be set
> 	at org.apache.solr.search.grouping.distributed.command.TopGroupsFieldCommand$Builder.build(TopGroupsFieldCommand.java:94)
> 	at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:291)
> 	at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:194)
> 	.
> 	.
> {noformat}
> For other (legal) values of group.sort or without the shards parameter, the query succeeds. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


[jira] [Resolved] (SOLR-2955) Distributed grouping throws IllegalStateException when querying with group.sort=score desc

Posted by "Martijn van Groningen (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martijn van Groningen resolved SOLR-2955.
-----------------------------------------

       Resolution: Fixed
    Fix Version/s: 4.0
                   3.6

Committed to trunk and 3x.
                
> Distributed grouping throws IllegalStateException when querying with group.sort=score desc
> ------------------------------------------------------------------------------------------
>
>                 Key: SOLR-2955
>                 URL: https://issues.apache.org/jira/browse/SOLR-2955
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 3.5, 4.0
>         Environment: Mac OS X 10.7.2
> Java version "1.6.0_29"
> Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11M3527)
> Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)
>            Reporter: Steffen Elberg Godskesen
>            Assignee: Martijn van Groningen
>              Labels: collapse, exception, grouping
>             Fix For: 3.6, 4.0
>
>         Attachments: SOLR-2955.patch, SOLR-2955.patch
>
>
> To reproduce:
> * Start example configuration from 3.6 or 4.0 distribution, and add example .xml documents to index
> * Query: http://localhost:8983/solr/select?q=*:*&sort=id%20asc&group=true&group.sort=score%20desc&group.field=manu_id_s&shards=localhost:8983/solr
> This will log
> {noformat}
> Dec 8, 2011 10:01:23 AM org.apache.solr.common.SolrException log
> SEVERE: java.lang.IllegalStateException: All required fields must be set
> 	at org.apache.solr.search.grouping.distributed.command.TopGroupsFieldCommand$Builder.build(TopGroupsFieldCommand.java:94)
> 	at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:291)
> 	at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:194)
> 	.
> 	.
> {noformat}
> For other (legal) values of group.sort or without the shards parameter, the query succeeds. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


[jira] [Updated] (SOLR-2955) Distributed grouping throws IllegalStateException when querying with group.sort=score desc

Posted by "Martijn van Groningen (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martijn van Groningen updated SOLR-2955:
----------------------------------------

          Description: 
To reproduce:

* Start example configuration from 3.6 or 4.0 distribution, and add example .xml documents to index
* Query: http://localhost:8983/solr/select?q=*:*&sort=id%20asc&group=true&group.sort=score%20desc&group.field=manu_id_s&shards=localhost:8983/solr

This will log

{noformat}
Dec 8, 2011 10:01:23 AM org.apache.solr.common.SolrException log
SEVERE: java.lang.IllegalStateException: All required fields must be set
	at org.apache.solr.search.grouping.distributed.command.TopGroupsFieldCommand$Builder.build(TopGroupsFieldCommand.java:94)
	at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:291)
	at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:194)
	.
	.
{noformat}

For other (legal) values of group.sort or without the shards parameter, the query succeeds. 


  was:

To reproduce:

* Start example configuration from 3.6 or 4.0 distribution, and add example .xml documents to index
* Query: http://localhost:8983/solr/select?q=*:*&sort=id%20asc&group=true&group.sort=score%20desc&group.field=manu_id_s&shards=localhost:8983/solr

This will log

{noformat}
Dec 8, 2011 10:01:23 AM org.apache.solr.common.SolrException log
SEVERE: java.lang.IllegalStateException: All required fields must be set
	at org.apache.solr.search.grouping.distributed.command.TopGroupsFieldCommand$Builder.build(TopGroupsFieldCommand.java:94)
	at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:291)
	at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:194)
	.
	.
{noformat}

For other (legal) values of group.sort or without the shards parameter, the query succeeds. 


    Affects Version/s:     (was: 3.6)
                       3.5

This issue effects Solr from version 3.5
                
> Distributed grouping throws IllegalStateException when querying with group.sort=score desc
> ------------------------------------------------------------------------------------------
>
>                 Key: SOLR-2955
>                 URL: https://issues.apache.org/jira/browse/SOLR-2955
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 3.5, 4.0
>         Environment: Mac OS X 10.7.2
> Java version "1.6.0_29"
> Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11M3527)
> Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)
>            Reporter: Steffen Elberg Godskesen
>            Assignee: Martijn van Groningen
>              Labels: collapse, exception, grouping
>         Attachments: SOLR-2955.patch, SOLR-2955.patch
>
>
> To reproduce:
> * Start example configuration from 3.6 or 4.0 distribution, and add example .xml documents to index
> * Query: http://localhost:8983/solr/select?q=*:*&sort=id%20asc&group=true&group.sort=score%20desc&group.field=manu_id_s&shards=localhost:8983/solr
> This will log
> {noformat}
> Dec 8, 2011 10:01:23 AM org.apache.solr.common.SolrException log
> SEVERE: java.lang.IllegalStateException: All required fields must be set
> 	at org.apache.solr.search.grouping.distributed.command.TopGroupsFieldCommand$Builder.build(TopGroupsFieldCommand.java:94)
> 	at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:291)
> 	at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:194)
> 	.
> 	.
> {noformat}
> For other (legal) values of group.sort or without the shards parameter, the query succeeds. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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


[jira] [Updated] (SOLR-2955) Distributed grouping throws IllegalStateException when querying with group.sort=score desc

Posted by "Martijn van Groningen (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martijn van Groningen updated SOLR-2955:
----------------------------------------

    Attachment: SOLR-2955.patch

Thanks for reporting this issue Steffen!
I've attached a fix (4.0) for this issue. I also changes your test case a bit. Basically I'm not asserting the response, because this isn't possible when sorting by score in a sharded environment. It just runs the query and checks if the query runs without errors.
                
> Distributed grouping throws IllegalStateException when querying with group.sort=score desc
> ------------------------------------------------------------------------------------------
>
>                 Key: SOLR-2955
>                 URL: https://issues.apache.org/jira/browse/SOLR-2955
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 3.6, 4.0
>         Environment: Mac OS X 10.7.2
> Java version "1.6.0_29"
> Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11M3527)
> Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)
>            Reporter: Steffen Elberg Godskesen
>            Assignee: Martijn van Groningen
>              Labels: collapse, exception, grouping
>         Attachments: SOLR-2955.patch, SOLR-2955.patch
>
>
> To reproduce:
> * Start example configuration from 3.6 or 4.0 distribution, and add example .xml documents to index
> * Query: http://localhost:8983/solr/select?q=*:*&sort=id%20asc&group=true&group.sort=score%20desc&group.field=manu_id_s&shards=localhost:8983/solr
> This will log
> {noformat}
> Dec 8, 2011 10:01:23 AM org.apache.solr.common.SolrException log
> SEVERE: java.lang.IllegalStateException: All required fields must be set
> 	at org.apache.solr.search.grouping.distributed.command.TopGroupsFieldCommand$Builder.build(TopGroupsFieldCommand.java:94)
> 	at org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:291)
> 	at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:194)
> 	.
> 	.
> {noformat}
> For other (legal) values of group.sort or without the shards parameter, the query succeeds. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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