Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test of timeout PDOException: Packets out of order #352

Merged
merged 14 commits into from
Aug 30, 2024

Conversation

Tigrov
Copy link
Member

@Tigrov Tigrov commented Aug 27, 2024

Related PR

Q A
Is bugfix?
New feature?
Breaks BC?
Fixed issues -

Copy link

codecov bot commented Aug 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.70%. Comparing base (1b5a917) to head (f48fcb0).

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #352   +/-   ##
=========================================
  Coverage     98.70%   98.70%           
- Complexity      172      173    +1     
=========================================
  Files            15       15           
  Lines           539      540    +1     
=========================================
+ Hits            532      533    +1     
  Misses            7        7           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Tigrov Tigrov added the status:code review The pull request needs review. label Aug 29, 2024
@Tigrov Tigrov requested a review from a team August 29, 2024 08:14

$this->assertSame('1', $result);

$db->close();
}

public function testNotRestartConnectionOnTimeoutInTransaction(): void
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we were going to restart it without error.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If a query in a transaction it is not correct to retry the query in the new connection out of the transaction.
We can close the old connection but the error will still be thrown.

@Tigrov Tigrov merged commit a59e09c into master Aug 30, 2024
2 checks passed
@Tigrov Tigrov deleted the fix-issue-packets-out-of-order branch August 30, 2024 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:code review The pull request needs review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants