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

Regular db pings to reconnect after timed out connections #41819

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

juliushaertl
Copy link
Member

@juliushaertl juliushaertl commented Nov 29, 2023

Re-implementation of #9425 to regularly check if the connection to the db is still active using a dummy select query (which is what the previous implementation used the ping method for which got removed from doctrine).

@juliushaertl juliushaertl changed the title enh/reconnect again Regular db pings to reconnect after timed out connections Nov 29, 2023
@juliushaertl juliushaertl force-pushed the enh/reconnect-again branch 2 times, most recently from 874a17a to e4cbdab Compare December 29, 2023 10:21
@juliushaertl juliushaertl marked this pull request as ready for review December 29, 2023 10:21
@juliushaertl juliushaertl added enhancement 3. to review Waiting for reviews labels Dec 29, 2023
@juliushaertl juliushaertl added this to the Nextcloud 29 milestone Dec 29, 2023
@icewind1991
Copy link
Member

We should probably add a check if a transaction is active and don't do automatic re-connections if so since the pending updates will be lost.

@juliushaertl juliushaertl force-pushed the enh/reconnect-again branch 2 times, most recently from 44dd3cf to c919c78 Compare January 12, 2024 13:29
Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliushaertl juliushaertl merged commit 39dee92 into master Jan 12, 2024
50 checks passed
@juliushaertl juliushaertl deleted the enh/reconnect-again branch January 12, 2024 19:10
@blizzz blizzz mentioned this pull request Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants