Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Version 3.1.3 Warning: Redis::pipeline(): Already in pipeline mode #1211
Hi, today library was updated and we got this error.
Not throw warnings.
Warning: Redis::pipeline(): Already in pipeline mode on every request.
I'm seeing this behaviour on
Steps to reproduce, backtrace or example script
In the middle php library olinmollenhour/cache-backend-redis: 1.9 used
I'll have to check but I think this is a new warning thrown if you try to enter pipeline mode when already in pipeline mode.
Edit: It looks like this is a side effect from updated pipeline processing code.
On the one hand, the warning is correct. Calling
In the meantime you can use
@yatsukhnenko I can see why we might want to revert to a NO OP here as it is what used to happen, but perhaps we leave it open to see how many people are impacted before changing it back.
@michael-grunder I've specially added this warning to help users find and fix double
From my perspective I think that issuing a warning here is more correct as entering pipeline mode twice (or multiple times) could indicate that the PHP client code has lost track of the object state.
That being said, since this is new behavior introduced in 3.1.3 and is causing people pain it's probably best to go ahead and remove it. There is nothing inherently dangerous about treating a duplicate call to
I'll reference this issue with the commit.
Ok for me this is not a Redis 3.1. or a php 5.6.31 version problem as my Magento 184.108.40.206 is on Ubuntu-Server 14.04 LTS. Where there is no upgrade beyond PHP 5.5.9 and Redis-server is version 2:2.8.4-2, SO I am not any where near the versions mentioned above and have the same issue.
"ERR (3): Warning: Redis::pipeline(): Already in pipeline mode in magento.../Credis/Client.php on line 931"
I have yet to find anything relating to Magento on this and not sure if it is Causing some of the magento
Prior to phpredis 3.1.3 if you called
$r->pipeline(); // enter pipeline mode $r->pipeline(); // In <= 3.1.2 call is ignored, in 3.1.3 it issues a warning
This should be fixed in the latest develop branch however.