Previously query shard locks the querylock in collectionReplica before any search/query
The lock range is too large and easy to cause dead lock
This PR makes following changes:
- Rename collectionReplica to metaReplica which is more reasonable
- Make release collection operation cancels waiting search/query request
- Reduce the queryLock to collection level
- Add some unit tests for timeout & released case
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
* check partitions if they are released or unloaded
* check segments if their collection/partition(s) are released or unloaded
Signed-off-by: Letian Jiang <letian.jiang@zilliz.com>
* check partitions if they are released or unloaded
* check segments if their collection/partition(s) are released or unloaded
Signed-off-by: Letian Jiang <letian.jiang@zilliz.com>