help wantedkind/testtopic/commands:addtopic/repo
Description
While looking into #3470 and #3436, I found that the locks around adding/pinning/GC look really wonky and inconsistent.
This issue is a reminder that we need to:
- Look very closely at which locks are in play
- Document in detail how these locks work
- Write stress tests which make sure we don't end deadlock ourselves