php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70564 setGroupLimit forces "Solr HTTP Error 56"
Submitted: 2015-09-23 16:03 UTC Modified: 2015-10-11 04:22 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:2 (100.0%)
From: trotzdemsieger at outlook dot com Assigned:
Status: No Feedback Package: solr (PECL)
PHP Version: 5.5.29 OS: Ubuntu LTS
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: trotzdemsieger at outlook dot com
New email:
PHP Version: OS:

 

 [2015-09-23 16:03 UTC] trotzdemsieger at outlook dot com
Description:
------------
Hi there,

there seems to be a bug when using SolrQuery::setGroupLimit().

Under certain circumstances, SolrClient exits with "Solr HTTP Error 56: 'Failure when receiving data from the peer'"
This normally happens, if I reuse a SolrClient-Connection and additionally the returned resultset is smaller than requested by setGroupLimit.

If I omit the "setGroupLimit"-call or if I reinstantiate a new connection no error is shown.

Test script:
---------------
$db = new \SolrClient(['host' => 'localhost', 'path' => 'solr/test']);

$query = new \SolrQuery();
$query->setGroup(true);
$query->addGroupField('testfield_with_many_rs');
$query->setGroupLimit(2);
$db->query($query); // works

$query = new \SolrQuery();
$query->setGroup(true);
$query->addGroupField('testfield_with_one_rs');
$query->setGroupLimit(2);
$db->query($query); // throws Exception

Actual result:
--------------
Solr HTTP Error 56: 'Failure when receiving data from the peer'

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-09-26 03:26 UTC] omars@php.net
I'm unable to reproduce the issue, but to help debug the issue, I have pushed a branch called curl-debug, it logs all curl requests in /tmp/solr_curl_request.log

That may help determine the root cause.
 [2015-09-28 18:00 UTC] omars@php.net
-Status: Open +Status: Feedback
 [2015-09-28 18:00 UTC] omars@php.net
awaiting feedback
 [2015-10-11 04:22 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 13:01:30 2024 UTC