[SERVER-66684] Introduce fetch registry in BucketCatalog Created: 23/May/22 Updated: 05/Dec/22 Resolved: 10/Nov/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Dan Larkin-York | Assignee: | Backlog - Storage Execution Team |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Storage Execution
|
| Participants: |
| Description |
|
We will want a registry in the BucketCatalog (most likely owned by a Stripe) to keep track of buckets we are fetching. When we add a bucket to the registry, it should be keyed by _id and store and a promise which other threads can wait on if they are interested in fetching the same bucket to avoid duplicate work. The initial thread should be able to either report an error and abort the fetch, or report success and provide the fetched bucket. |