This can be reproduced by running:
php /vagrant/mediawiki/tests/phpunit/phpunit.php --use-bagostuff=redis /vagrant/mediawiki/tests/phpunit/includes/objectcache/BagOStuffTest.php
on https://gerrit.wikimedia.org/r/#/c/91138/ .
I was able to eliminate the error by dropping RedisBagOStuff->incr (falling back on the parent's incr, lock, and unlock), but I'm not sure if that's an acceptable solution.
This breaks the ping limiter (tested), and probably a couple other things (not tested), when Redis is the main cache (as it is with MediaWiki-Vagrant).
Version: 1.22.0
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=55987
https://bugzilla.wikimedia.org/show_bug.cgi?id=56069