Page MenuHomePhabricator

Warning: Destructor threw an object exception: exception 'InvalidArgumentException' with message 'LoadBalancer::reuseConnection: connection not found, has the connection been freed already?' in /srv/mediawiki/php-1.28.0-wmf.21/includes/libs/rdbms/loadbala
Closed, ResolvedPublicPRODUCTION ERROR

Description

Tried to rollout wmf.21 to group1 wikis, but had a large increase in error rate, more than 10x normal.

Warning: Destructor threw an object exception: exception 'InvalidArgumentException' with message 'LoadBalancer::reuseConnection: connection not found, has the connection been freed already?' in /srv/mediawiki/php-1.28.0-wmf.21/includes/libs/rdbms/loadbalancer/LoadBalancer.php:620
Stack trace:
#0 /srv/mediawiki/php-1.28.0-wmf.21/includes/libs/rdbms/database/DBConnRef.php(599): LoadBalancer->reuseConnection()
#1 (): DBConnRef->__destruct()
#2 {main}

Event Timeline

Change 314461 had a related patch set uploaded (by Aaron Schulz):
Ignore reuseConnection() errors after LoadBalancer/LBFactory destruction

https://gerrit.wikimedia.org/r/314461

Change 314600 had a related patch set uploaded (by Thcipriani):
Ignore reuseConnection() errors after LoadBalancer/LBFactory destruction

https://gerrit.wikimedia.org/r/314600

Change 314461 merged by jenkins-bot:
Ignore reuseConnection() errors after LoadBalancer/LBFactory destruction

https://gerrit.wikimedia.org/r/314461

Change 314600 merged by jenkins-bot:
Ignore reuseConnection() errors after LoadBalancer/LBFactory destruction

https://gerrit.wikimedia.org/r/314600

Mentioned in SAL (#wikimedia-operations) [2016-10-06T22:04:40Z] <thcipriani@tin> Synchronized php-1.28.0-wmf.21/includes/libs/rdbms/loadbalancer/LoadBalancer.php: [[gerrit:314600|Ignore reuseConnection() errors after LoadBalancer/LBFactory destruction (T147520)]] (duration: 00m 50s)

Seems pretty rare if it's 3/hour. Note that this is the result of a new sanity check, so it's not likely a new bug but rather the reporting of existing ones.

The link above has no results. If I expand to 24hrs, I only see a different destructor error. Maybe that can use a different task report?

The link above has no results. If I expand to 24hrs, I only see a different destructor error. Maybe that can use a different task report?

Bah, you're right, I didn't look very closely, obviously. Apologies.

mmodell changed the subtype of this task from "Task" to "Production Error".Aug 28 2019, 11:11 PM