Skip to content

[bugfix] Fix lock order when storing reports to the database#3450

Merged
vkarak merged 3 commits intoreframe-hpc:developfrom
vkarak:bugfix/db-lock-order
Apr 4, 2025
Merged

[bugfix] Fix lock order when storing reports to the database#3450
vkarak merged 3 commits intoreframe-hpc:developfrom
vkarak:bugfix/db-lock-order

Conversation

@vkarak
Copy link
Contributor

@vkarak vkarak commented Apr 3, 2025

We should acquire the file lock before attempting to connect to the database as we do for session removal already. This way we avoid connection timeouts when there are multiple writers.

@vkarak vkarak added bugfix reporting Issues related to reporting and processing the test results labels Apr 3, 2025
@vkarak vkarak added this to the ReFrame 4.8 milestone Apr 3, 2025
@vkarak vkarak requested review from ekouts and teojgo April 3, 2025 12:02
@vkarak vkarak self-assigned this Apr 3, 2025
Copy link
Contributor

@victorusu victorusu left a comment

Choose a reason for hiding this comment

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

lgtm

@github-project-automation github-project-automation bot moved this from Todo to In Progress in ReFrame Backlog Apr 4, 2025
@vkarak vkarak changed the title [bugfix] Fix DB lock order when storing reports [bugfix] Fix lock order when storing reports to the database Apr 4, 2025
@vkarak vkarak enabled auto-merge April 4, 2025 19:27
@vkarak vkarak merged commit 2355ee8 into reframe-hpc:develop Apr 4, 2025
38 of 41 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in ReFrame Backlog Apr 4, 2025
@vkarak vkarak deleted the bugfix/db-lock-order branch November 30, 2025 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix reporting Issues related to reporting and processing the test results

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants