Revert "Avoid doNotifyQueueEmpty() race conditions for Redis"
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 11 Nov 2015 22:20:37 +0000 (22:20 +0000)
committerKrinkle <krinklemail@gmail.com>
Thu, 12 Nov 2015 00:40:33 +0000 (00:40 +0000)
This might hitting a phpredis bug causing "read error" messages.

This reverts commit ab2e1dae28f3b15e100e814544419f6719ef06f5.

Bug: T118430
Change-Id: I45b009e8768b79368898762bfedbca4dc0a79943

includes/jobqueue/aggregator/JobQueueAggregatorRedis.php

index f8a0040..6c49646 100644 (file)
@@ -59,11 +59,7 @@ class JobQueueAggregatorRedis extends JobQueueAggregator {
                        return false;
                }
                try {
-                       // Make sure doNotifyQueueNonEmpty() takes precedence to avoid races
-                       $conn->watch( $this->getReadyQueueKey() );
-                       $conn->multi()
-                               ->hDel( $this->getReadyQueueKey(), $this->encQueueName( $type, $wiki ) )
-                               ->exec();
+                       $conn->hDel( $this->getReadyQueueKey(), $this->encQueueName( $type, $wiki ) );
 
                        return true;
                } catch ( RedisException $e ) {