prevent ongoing migration locks from accumulating over time #65
Labels
No labels
ActivityPub
advanced features
basic functionality
bug
DHT
evaluation
refactoring
security
test case
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: schmittlauch/Hash2Pub#65
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
With the approach introduced in
414564705a
and following commits, each incoming data migration creates a new MVar lock under the key of a provided source ID. If this lock is never collected, these locks will accumulate, the parent map will grow and the runtime list of threads to wake up also grows.Possible approach: add timestamp to MVar lock entry, periodically purge old logs and wake up waiting threads.
Could be solved together with #64