milvus/pkg/util/vralloc
wei liu 347acf62de
fix: Fix intermittent deadlock in grouped allocator (#42524)
issue: #42523
Resolve deadlock issue in GroupedAllocator where resource release
notifications fail to propagate across hierarchy levels, causing child
allocators to wait indefinitely.

Changes include:
- Add recursive notify() method to GroupedAllocator
- Ensure all child allocators receive resource release notifications
- Fix TOCTOU race condition in hierarchical resource management

This resolves the intermittent test timeout in TestGroupedAllocator test
that exhibited deadlock due to missed condition notifications.

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
2025-06-05 16:54:33 +08:00
..
alloc.go enhance: Use v2 package name for pkg module (#39990) 2025-02-22 23:15:58 +08:00
alloc_test.go enhance: Use v2 package name for pkg module (#39990) 2025-02-22 23:15:58 +08:00
sharedalloc.go fix: Fix intermittent deadlock in grouped allocator (#42524) 2025-06-05 16:54:33 +08:00
sharedalloc_test.go feat: adding grouped virtual resource allocator (#33669) 2024-06-21 15:58:01 +08:00