Skip to content

Conversation

@kim
Copy link
Contributor

@kim kim commented Jan 15, 2026

Notifications were sent shortly before dropping the actor (and thus, the lockfile), which could cause the close future to return while the lock is still held.

This can lead to a race if the database is re-opened immediately, such as in TestDB::reopen(), causing test flakes.

Expected complexity level and risk

1

Testing

Should result in "Database is already opened" test flakes to go away.

@kim kim requested review from bfops and jdetter January 15, 2026 18:24
Notifications were sent shortly before dropping the actor (and thus, the
lockfile), which could cause the `close` future to return while the lock
is still held.

This can lead to a race if the database is re-opened immediately, such
as in `TestDB::reopen()`, causing test flakes.
@kim kim force-pushed the kim/durability/notify-after-drop branch from 43a473a to 592b792 Compare January 15, 2026 19:12
Copy link
Collaborator

@bfops bfops left a comment

Choose a reason for hiding this comment

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

this fix makes sense to me! Thank you for finding it 🙏 that seems like a pain.

@kim kim enabled auto-merge January 16, 2026 06:42
@kim kim added this pull request to the merge queue Jan 16, 2026
Merged via the queue into master with commit 727f516 Jan 16, 2026
44 of 45 checks passed
@kim kim deleted the kim/durability/notify-after-drop branch January 16, 2026 08:03
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.

4 participants