milvus/pkg/config
congqixia ddb1015563
fix: [2.4] Check err is ErrKeyNotFound when CASCachedValue (#34489)
Cherry-pick from master
pr: #34488
See also #33785

When config item is not present in paramtable, CAS fails due to
GetConfig returns error.

This PR make this returned err instance of ErrKeyNotFound and check
error type in \`CASCachedValue\` methods.

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2024-07-09 18:12:13 +08:00
..
config_test.go fix: [2.4] Check err is ErrKeyNotFound when CASCachedValue (#34489) 2024-07-09 18:12:13 +08:00
config.go enhance: Cache formatted key for param item (#31388) 2024-03-19 14:05:05 +08:00
env_source.go fix: [2.4] Check err is ErrKeyNotFound when CASCachedValue (#34489) 2024-07-09 18:12:13 +08:00
etcd_source_test.go fix: use atomic.Pointer to store EventHandler in case of data race (#30205) 2024-01-23 19:09:04 +08:00
etcd_source.go fix: [2.4] Check err is ErrKeyNotFound when CASCachedValue (#34489) 2024-07-09 18:12:13 +08:00
event_dispatcher_test.go enhance: Add unittest for config.EventDispatcher (#28552) 2023-11-18 19:12:20 +08:00
event_dispatcher.go enhance: support clean paramtable config event in test (#30534) 2024-02-20 14:16:51 +08:00
event.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
file_source.go fix: [2.4] Check err is ErrKeyNotFound when CASCachedValue (#34489) 2024-07-09 18:12:13 +08:00
manager_test.go fix: [2.4] Check err is ErrKeyNotFound when CASCachedValue (#34489) 2024-07-09 18:12:13 +08:00
manager.go fix: [2.4] Check err is ErrKeyNotFound when CASCachedValue (#34489) 2024-07-09 18:12:13 +08:00
refresher.go enhance: adjust config source for support config event use paramtable (#29995) 2024-01-26 19:07:00 +08:00
source_test.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
source.go fix: paramtable cache cause dynamic config non-dynamic (#33473) (#33590) 2024-06-05 10:15:51 +08:00