milvus/internal/querycoordv2/balance
congqixia 3626f49025
fix: make sure balance candidate is alway pushed back (#29702)
See also #29699

Querycoord panicked when tried to pop from an empty heap. We assume the
heap shall not be empty, but in some branch, the candidate is never
pushed back.

This PR put pop & push in a closure and adds a defer call to push item
back.

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2024-01-05 10:08:47 +08:00
..
OWNERS Add OWNERS files for querycoordv2 sub pkgs (#23489) 2023-04-18 15:52:30 +08:00
balance.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
balance_test.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
mock_balancer.go Remove parser dependency (#27514) 2023-10-08 15:05:31 +08:00
priority_queue.go Add license header (#19678) 2022-10-11 11:39:22 +08:00
priority_queue_test.go enhance segment balance by considering global rowCount(##22914) (#23056) 2023-04-03 14:16:25 +08:00
rowcount_based_balancer.go enhance: Rewrite gen segment plan based on assign segment (#29574) 2024-01-04 11:10:44 +08:00
rowcount_based_balancer_test.go enhance: Add config for querycoord auto balance channel (#29231) 2023-12-18 10:00:40 +08:00
score_based_balancer.go fix: make sure balance candidate is alway pushed back (#29702) 2024-01-05 10:08:47 +08:00
score_based_balancer_test.go enhance: Rewrite gen segment plan based on assign segment (#29574) 2024-01-04 11:10:44 +08:00
utils.go Change task sourceID to stringer interface (#27965) 2023-10-27 01:08:12 +08:00