Skip to content

Conversation

@vakhov
Copy link
Contributor

@vakhov vakhov commented Jan 23, 2026

Ensure reload_schema always clears reload_in_progress flag and broadcasts condition variable even if schema reload fails or times out.

Previously, an early return on error left reload_in_progress set to true, causing subsequent crud.schema() calls to wait until timeout indefinitely.

Fixes #479

@vakhov vakhov force-pushed the fix/schema-reload-deadlock-after-error branch from bbc93d6 to 955c1ee Compare January 23, 2026 09:04
@vakhov vakhov requested review from Satbek and p0rtale January 23, 2026 15:04
@vakhov vakhov requested a review from p0rtale January 26, 2026 11:09
@vakhov vakhov force-pushed the fix/schema-reload-deadlock-after-error branch 3 times, most recently from 9efdd24 to 7d9b13e Compare February 3, 2026 10:38
@vakhov vakhov requested a review from Satbek February 3, 2026 10:39
@vakhov vakhov force-pushed the fix/schema-reload-deadlock-after-error branch from 7d9b13e to 642354d Compare February 3, 2026 12:22
@vakhov vakhov force-pushed the fix/schema-reload-deadlock-after-error branch from 642354d to 2f55d98 Compare February 3, 2026 12:27
Ensure reload_schema always clears reload_in_progress flag
and broadcasts condition variable even if schema reload
fails or times out.

Previously, an early return on error left reload_in_progress
set to true, causing subsequent crud.schema() calls to wait
until timeout indefinitely.

Add integration test reproducing the issue and verifying that
schema reload can be retried successfully after a failure.

Fixes #479
@vakhov vakhov force-pushed the fix/schema-reload-deadlock-after-error branch from 2f55d98 to 4d60fe2 Compare February 3, 2026 13:29
@vakhov vakhov merged commit 7b68ce2 into master Feb 3, 2026
32 checks passed
@vakhov vakhov deleted the fix/schema-reload-deadlock-after-error branch February 3, 2026 14:19
@vakhov vakhov self-assigned this Feb 3, 2026
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.

Schema reload state not cleared on failure, causing repeated timeouts

4 participants