Skip to content

[persist] Fix a futurelock in the recent update lease attempt#34980

Open
bkirwi wants to merge 4 commits intoMaterializeInc:mainfrom
bkirwi:task-lease-fix
Open

[persist] Fix a futurelock in the recent update lease attempt#34980
bkirwi wants to merge 4 commits intoMaterializeInc:mainfrom
bkirwi:task-lease-fix

Conversation

@bkirwi
Copy link
Contributor

@bkirwi bkirwi commented Feb 10, 2026

This un-reverts a recent buggy change, adds some supporting code and a reproducer for the bug, then reimplements it hopefully-more-correctly in the last commit.

Motivation

Fixes https://github.com/MaterializeInc/database-issues/issues/10081.

Tips for reviewer

This was an instance of futurelock.

Perhaps it's hubristic to try and fix a bug in a recent concurrency abstraction I landed by using another recent concurrency abstraction I landed? I think the semantics are right - fundamentally the only safe thing to do is wake all waiters, and try and make it not too expensive - but I am open to suggestions.

@bkirwi
Copy link
Contributor Author

bkirwi commented Feb 12, 2026

There's a mysterious Kafka failure in the nightlies that I want to investigate, but otherwise this is probably ready for a look.

@bkirwi bkirwi marked this pull request as ready for review February 12, 2026 03:41
@bkirwi bkirwi requested review from a team as code owners February 12, 2026 03:41
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.

1 participant