You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while ($connection->transDepth > 0 && $attempts < $maxAttempts) {
198
-
if (! $connection->transRollback()) {
199
-
log_message('error', "Database transaction rollback failed for group: {$group}");
200
-
break;
201
-
}
202
-
$attempts++;
203
-
}
204
-
205
-
if ($connection->transDepth > 0) {
206
-
log_message('warning', "Database connection has uncommitted transactions after cleanup: {$group}");
207
-
}
208
-
break;
191
+
if ($connection->transDepth > 0) {
192
+
log_message('error', "Uncommitted transaction detected in database group '{$group}'. Transactions must be completed before request ends. Reconnecting to ensure clean state.");
193
+
$connection->close();
194
+
$connection->initialize();
209
195
}
210
196
}
211
-
212
-
// If using the disconnect strategy, clear the instances array
0 commit comments