Skip to content

Avoid assertion during AssayTransformImportUpdateTest#6752

Merged
labkey-jeckels merged 5 commits intodevelopfrom
fb_raceConditionKillingConnection
Jun 24, 2025
Merged

Avoid assertion during AssayTransformImportUpdateTest#6752
labkey-jeckels merged 5 commits intodevelopfrom
fb_raceConditionKillingConnection

Conversation

@labkey-jeckels
Copy link
Contributor

@labkey-jeckels labkey-jeckels commented Jun 13, 2025

Rationale

This test is hitting an assert due to a race condition when one thread kills DB connections on another's behalf.

Failure:
https://teamcity.labkey.org/buildConfiguration/LabkeyTrunk_DailyCPostgres/3545407

Test of FB:
https://teamcity.labkey.org/buildConfiguration/LabkeyTrunk_DailyCPostgres?branch=raceConditionKillingConnection&buildTypeTab=overview

Changes

  • Always log when the connection has changed, but don't assert when another thread is doing the connection closing
  • Show cancel button on assay's job grid
  • Avoid race condition by saving brand new "simple" metrics asychronously

@labkey-jeckels labkey-jeckels requested review from a team and labkey-chrisj June 13, 2025 00:03
Copy link
Contributor

@labkey-chrisj labkey-chrisj left a comment

Choose a reason for hiding this comment

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

I'm not sure I have much to add here, but it's gratifying to see this test running into issues we didn't expect it to

@labkey-jeckels labkey-jeckels self-assigned this Jun 24, 2025
@labkey-jeckels labkey-jeckels merged commit 5b0a1f7 into develop Jun 24, 2025
9 checks passed
@labkey-jeckels labkey-jeckels deleted the fb_raceConditionKillingConnection branch June 24, 2025 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants