milvus/internal/proxy
zhenshan.cao 7cf2be09b5
fix: Restore the MVCC functionality. (#29749) (#29802)
When the TimeTravel functionality was previously removed, it
inadvertently affected the MVCC functionality within the system. This PR
aims to reintroduce the internal MVCC functionality as follows:

1. Add MvccTimestamp to the requests of Search/Query and the results of
Search internally.
2. When the delegator receives a Query/Search request and there is no
MVCC timestamp set in the request, set the delegator's current tsafe as
the MVCC timestamp of the request. If the request already has an MVCC
timestamp, do not modify it.
3. When the Proxy handles Search and triggers the second phase ReQuery,
divide the ReQuery into different shards and pass the MVCC timestamp to
the corresponding Query requests.

issue: #29656
pr: #29749

Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
2024-01-11 14:42:49 +08:00
..
accesslog fix: [Cherry-pick] accesslog can not print search expression (#28931) 2023-12-08 02:00:36 +08:00
connection enhance: [Cherry-pick] pack proxy connection code and support accesslog print SDK_Version (#28844) 2023-12-07 12:06:34 +08:00
OWNERS [skip ci]Update OWNERS files (#11898) 2021-11-16 15:41:11 +08:00
authentication_interceptor.go [2.3]: Hide the password info when failing to authorize (#28437) 2023-11-15 14:40:26 +08:00
authentication_interceptor_test.go Support the apikey authentication for the restful api (#27758) 2023-10-18 16:36:12 +08:00
channels_mgr.go enhance: [Cherry-Pick] make sure stream closed (#29457) 2023-12-27 10:02:46 +08:00
channels_mgr_test.go enhance: [Cherry-Pick] make sure stream closed (#29457) 2023-12-27 10:02:46 +08:00
channels_time_ticker.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
channels_time_ticker_test.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
condition.go Use cockroachdb/errors to replace other error pkg (#22390) 2023-02-26 11:31:49 +08:00
condition_test.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
count_reducer.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
count_reducer_test.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
data_coord_mock_test.go Refine state check (#27541) 2023-10-11 21:01:35 +08:00
database_interceptor.go fix: Fix missing target db name for RenameCollection (#28911) 2023-12-03 08:28:31 +08:00
database_interceptor_test.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
default_limit_reducer.go Improve the error message for getting all indexes of collection (#27389) 2023-10-08 21:23:32 +08:00
dummyreq.go [skip ci]Update license for proxy dummy (#11605) 2021-11-10 23:43:27 +08:00
dummyreq_test.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
expr_checker.go Support partition Key (#24047) 2023-06-06 10:24:34 +08:00
expr_checker_test.go Use go-api/v2 for milvus-proto (#24770) 2023-06-09 01:28:37 +08:00
hook_interceptor.go enhance: [Cherry-pick]Refine accesslog to support format by yaml and support more metric (#28740) 2023-11-28 15:34:28 +08:00
hook_interceptor_test.go Support the apikey authentication (#27723) 2023-10-17 21:00:11 +08:00
impl.go enhance:Add upsert vector metrics(#29226) (#29674) 2024-01-05 15:44:47 +08:00
impl_test.go Support to replicate the mq message (#27240) 2023-10-20 14:26:09 +08:00
interface_def.go Decoupling client and server API in types interface (#27186) 2023-09-26 09:57:25 +08:00
lb_balancer.go add metrics for replica selection (#25037) 2023-06-27 09:52:44 +08:00
lb_policy.go fix: Restore the MVCC functionality. (#29749) (#29802) 2024-01-11 14:42:49 +08:00
lb_policy_test.go fix: Restore the MVCC functionality. (#29749) (#29802) 2024-01-11 14:42:49 +08:00
look_aside_balancer.go Decoupling client and server API in types interface (#27186) 2023-09-26 09:57:25 +08:00
look_aside_balancer_test.go Decoupling client and server API in types interface (#27186) 2023-09-26 09:57:25 +08:00
management.go enhance: [cherry-pick] Add http method to control datacoord garbage collection (#29212) 2023-12-15 02:16:38 +08:00
management_test.go enhance: [cherry-pick] Add http method to control datacoord garbage collection (#29212) 2023-12-15 02:16:38 +08:00
meta_cache.go enhance: [Cherry-pick] cache collection schema attributes to reduce proxy cpu (#29668) (#29692) 2024-01-07 22:36:48 +08:00
meta_cache_adapter.go enhance: [cherry-pick] Avoid initializing casbin enforcer for each request (#29118) 2023-12-12 10:36:43 +08:00
meta_cache_adapter_test.go enhance: [cherry-pick] Avoid initializing casbin enforcer for each request (#29118) 2023-12-12 10:36:43 +08:00
meta_cache_test.go enhance: [Cherry-pick] cache collection schema attributes to reduce proxy cpu (#29668) (#29692) 2024-01-07 22:36:48 +08:00
metrics_info.go Refine state check (#27541) 2023-10-11 21:01:35 +08:00
metrics_info_test.go Refine state check (#27541) 2023-10-11 21:01:35 +08:00
mock_cache.go enhance: [Cherry-pick] cache collection schema attributes to reduce proxy cpu (#29668) (#29692) 2024-01-07 22:36:48 +08:00
mock_channels_manager.go support complex delete expression (#25752) 2023-09-12 10:19:17 +08:00
mock_lb_balancer.go Organize all mockery generation commands in Makefile (#26826) 2023-09-04 21:19:48 +08:00
mock_lb_policy.go Organize all mockery generation commands in Makefile (#26826) 2023-09-04 21:19:48 +08:00
mock_msgstream_test.go Support to replicate the mq message (#27240) 2023-10-20 14:26:09 +08:00
mock_shardclient_manager.go Decoupling client and server API in types interface (#27186) 2023-09-26 09:57:25 +08:00
mock_test.go Support to replicate the mq message (#27240) 2023-10-20 14:26:09 +08:00
mock_tso_test.go Decoupling client and server API in types interface (#27186) 2023-09-26 09:57:25 +08:00
msg_pack.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
msg_pack_test.go Decoupling client and server API in types interface (#27186) 2023-09-26 09:57:25 +08:00
multi_rate_limiter.go fix: Return time tick delay error and refine quota error messages (#29289) (#29363) 2023-12-21 14:58:49 +08:00
multi_rate_limiter_test.go fix: Return time tick delay error and refine quota error messages (#29289) (#29363) 2023-12-21 14:58:49 +08:00
privilege_interceptor.go feat: Authorize users to query grant info of their roles (#29747) (#29762) 2024-01-08 18:06:49 +08:00
privilege_interceptor_test.go Refine state check (#27541) 2023-10-11 21:01:35 +08:00
proxy.go enhance: [2.3] Support to get the param value in the runtime (#29298) 2023-12-21 20:36:43 +08:00
proxy_rpc_test.go Refine Proxy errors (#27499) 2023-10-09 10:09:33 +08:00
proxy_test.go enhance: [Cherry-pick] Moving etcd client into session (#27069) (#28996) 2023-12-07 16:22:34 +08:00
rate_limit_interceptor.go fix: Return time tick delay error and refine quota error messages (#29289) (#29363) 2023-12-21 14:58:49 +08:00
rate_limit_interceptor_test.go fix: Return time tick delay error and refine quota error messages (#29289) (#29363) 2023-12-21 14:58:49 +08:00
reducer.go enable ctx traceId for assignsegment on dc(#26972) (#27108) (#27030) 2023-09-18 11:39:20 +08:00
reducer_test.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
repack_func.go Support to replicate the mq message (#27240) 2023-10-20 14:26:09 +08:00
repack_func_test.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
replicate_stream_manager.go Support to replicate the mq message (#27240) 2023-10-20 14:26:09 +08:00
replicate_stream_manager_test.go fix: [2.3] the unstable unit test TestReplicateManager (#29147) 2023-12-13 10:46:44 +08:00
rootcoord_mock_test.go enhance: remove legacy error related code (#28385) (#28415) 2023-11-15 17:24:21 +08:00
roundrobin_balancer.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
roundrobin_balancer_test.go add metrics for replica selection (#25037) 2023-06-27 09:52:44 +08:00
rpc_msg.go Add slow log for read (#23272) 2023-04-14 15:30:29 +08:00
segment.go enhance: [cherry-pick] Use zap.Stringer for large log field (#29143) (#29153) 2023-12-13 09:48:38 +08:00
segment_test.go Refine state check (#27541) 2023-10-11 21:01:35 +08:00
shard_client.go Add querynode client wrapper and avoid grpc in standalone mode (#27781) 2023-10-19 11:10:07 +08:00
shard_client_test.go Decoupling client and server API in types interface (#27186) 2023-09-26 09:57:25 +08:00
task.go enhance: [Cherry-pick] cache collection schema attributes to reduce proxy cpu (#29668) (#29692) 2024-01-07 22:36:48 +08:00
task_database.go Support to replicate the mq message (#27240) 2023-10-20 14:26:09 +08:00
task_database_test.go Support to replicate the mq message (#27240) 2023-10-20 14:26:09 +08:00
task_delete.go fix: Restore the MVCC functionality. (#29749) (#29802) 2024-01-11 14:42:49 +08:00
task_delete_test.go fix: Restore the MVCC functionality. (#29749) (#29802) 2024-01-11 14:42:49 +08:00
task_index.go enhance: [Cherry-pick] cache collection schema attributes to reduce proxy cpu (#29668) (#29692) 2024-01-07 22:36:48 +08:00
task_index_test.go enhance: [Cherry-pick] cache collection schema attributes to reduce proxy cpu (#29668) (#29692) 2024-01-07 22:36:48 +08:00
task_insert.go enhance: [Cherry-pick] cache collection schema attributes to reduce proxy cpu (#29668) (#29692) 2024-01-07 22:36:48 +08:00
task_insert_test.go Remove old mockChannelsMgrs, use mockery MockChannelsMgr instead (#27318) 2023-09-25 10:31:26 +08:00
task_policies.go Decoupling client and server API in types interface (#27186) 2023-09-26 09:57:25 +08:00
task_policies_test.go Decoupling client and server API in types interface (#27186) 2023-09-26 09:57:25 +08:00
task_query.go fix: Restore the MVCC functionality. (#29749) (#29802) 2024-01-11 14:42:49 +08:00
task_query_test.go enhance: [Cherry-pick] cache collection schema attributes to reduce proxy cpu (#29668) (#29692) 2024-01-07 22:36:48 +08:00
task_scheduler.go Use pool to block exceeded tasks (#27767) 2023-10-19 03:30:06 +08:00
task_scheduler_test.go Remove old mockChannelsMgrs, use mockery MockChannelsMgr instead (#27318) 2023-09-25 10:31:26 +08:00
task_search.go fix: Restore the MVCC functionality. (#29749) (#29802) 2024-01-11 14:42:49 +08:00
task_search_test.go fix: Restore the MVCC functionality. (#29749) (#29802) 2024-01-11 14:42:49 +08:00
task_statistic.go fix: Restore the MVCC functionality. (#29749) (#29802) 2024-01-11 14:42:49 +08:00
task_statistic_test.go Refine state check (#27541) 2023-10-11 21:01:35 +08:00
task_test.go enhance: [Cherry-pick] cache collection schema attributes to reduce proxy cpu (#29668) (#29692) 2024-01-07 22:36:48 +08:00
task_upsert.go enhance: [Cherry-pick] cache collection schema attributes to reduce proxy cpu (#29668) (#29692) 2024-01-07 22:36:48 +08:00
task_upsert_test.go enhance: [Cherry-pick] cache collection schema attributes to reduce proxy cpu (#29668) (#29692) 2024-01-07 22:36:48 +08:00
timestamp.go Fix panic while handling with the nil status (#27040) 2023-09-15 10:09:21 +08:00
timestamp_test.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
type_def.go [skip e2e] Add comment for pChan (#14098) 2021-12-23 21:44:12 +08:00
util.go enhance: [Cherry-pick] cache collection schema attributes to reduce proxy cpu (#29668) (#29692) 2024-01-07 22:36:48 +08:00
util_test.go enhance: make consistency level used in delete configurable (#29280) (#29284) 2023-12-20 14:14:34 +08:00
validate_util.go fix: Rename invalid parameterutil package path (#29334) (#29391) 2023-12-22 10:06:41 +08:00
validate_util_test.go enhance: validate JSON data while inserting (#28602) (#28725) 2023-11-27 16:16:26 +08:00