20727 Commits

Author SHA1 Message Date
Zhen Ye
5d2f454ce4
enhance: add multiply factor when loading index (#38721)
issue: #38715
pr: #38716

Signed-off-by: chyezh <chyezh@outlook.com>
2024-12-25 10:50:58 +08:00
wei liu
8fe883f7c1
fix: [2.4] Querycoord will trigger unexpected balance task after restart (#38714)
issue: #38606 
pr: #38630

---------

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
2024-12-25 10:46:50 +08:00
yihao.dai
648078e83b
fix: [2.4] Fix 0 read count during import (#38696)
issue: https://github.com/milvus-io/milvus/issues/38693

pr: https://github.com/milvus-io/milvus/pull/38694

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
2024-12-24 20:58:50 +08:00
congqixia
5fd69a07ff
fix: [2.4] Remove sync task after finished (#38681) (#38686)
Cherry-pick from master
pr: #38681
Related to #38680

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2024-12-24 19:00:52 +08:00
cai.zhang
afaabc2a38
enhance: [2.4] clean compaction task in compactionHandler (#38170) (#38584)
issue: #35711

master pr: #38170

Signed-off-by: wayblink <anyang.wang@zilliz.com>
Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
Co-authored-by: wayblink <anyang.wang@zilliz.com>
2024-12-24 15:34:50 +08:00
cai.zhang
7363a1c0cb
fix: [2.4] Support hybrid search with expression template (#38624)
issue: #38616 

master pr: #38623

Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
2024-12-23 14:34:50 +08:00
cai.zhang
ad68bc6204
fix: [2.4] Decode unicode for json key in expression (#38652)
issue: #38626

master pr: #38651

Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
2024-12-23 13:54:51 +08:00
XuanYang-cn
21d76ad1ce
enhance: Use partitionID when delete by partitionKey (#38232)
When delete by partition_key, Milvus will generates L0 segments
globally. During L0 Compaction, those L0 segments will touch all
partitions collection wise. Due to the false-positive rate of segment
bloomfilters, L0 compactions will append false deltalogs to completed
irrelevant partitions, which causes *partition deletion amplification.

This PR uses partition_key to set targeted partitionID when producing
deleteMsgs into MsgStreams. This'll narrow down L0 segments scope to
partition level, and remove the false-positive influence
collection-wise.

However, due to DeleteMsg structure, we can only label one partition to
one deleteMsg, so this enhancement fails if user wants to delete over 2
partition_keys in one deletion.

pr: #38231 
See also: #34665

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
2024-12-23 13:52:51 +08:00
sre-ci-robot
592f34c2d7
[automated] Bump milvus version to v2.4.18 (#38605)
Bump milvus version to v2.4.18
Signed-off-by: sre-ci-robot sre-ci-robot@users.noreply.github.com

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-12-21 07:24:48 +08:00
XuanYang-cn
e82af48706
fix: State trans error in concurrent Release and Watching (#38591)
See also: #38589
pr: #38590

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
v2.4.18
2024-12-19 21:46:47 +08:00
congqixia
451deb3298
enhance: Bump milvus & proto version to v2.4.18 (#38552)
mockery update related to #31779

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2024-12-19 10:32:47 +08:00
yanliang567
dc78b67f73
test: Add alter index, alter collection, alter database tests (#38561)
related issue: #38471

---------

Signed-off-by: yanliang567 <yanliang.qiao@zilliz.com>
2024-12-19 10:30:47 +08:00
smellthemoon
98052cfcc3
fix: need pass parameter to listPrivilegeGroups(#38562) (#38564)
pr: #38562 
issue: #38563

Signed-off-by: lixinguo <xinguo.li@zilliz.com>
Co-authored-by: lixinguo <xinguo.li@zilliz.com>
2024-12-18 20:28:51 +08:00
sthuang
d84e4f6ed2
fix: [2.4] rbac revoke check if there is same privilege in other privilege groups granted (#38559)
cherry-pick from master: https://github.com/milvus-io/milvus/pull/38558
related: https://github.com/milvus-io/milvus/issues/38557

Signed-off-by: shaoting-huang <shaoting.huang@zilliz.com>
2024-12-18 19:30:47 +08:00
Chun Han
306f200af0
fix: growing-groupby-crush(#38533) (#38553)
related: #38533
pr: https://github.com/milvus-io/milvus/pull/38538

Signed-off-by: MrPresent-Han <chun.han@gmail.com>
Co-authored-by: MrPresent-Han <chun.han@gmail.com>
2024-12-18 17:12:47 +08:00
Bingyi Sun
b469999f65
enhance: allow hyphen in partition name (#38474)
Signed-off-by: sunby <sunbingyi1992@gmail.com>
2024-12-18 13:54:47 +08:00
sthuang
6364e323de
fix: [2.4] privilege group privileges granted from ClusterAdmin permission denied (#38530)
cherry-pick from master: https://github.com/milvus-io/milvus/pull/38514
related: https://github.com/milvus-io/milvus/issues/38460

Signed-off-by: shaoting-huang <shaoting.huang@zilliz.com>
2024-12-18 13:20:46 +08:00
zhenshan.cao
5cfe3c9bda
enhance:[skip e2e] Add new maintainers (#38547) (#38548)
Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
2024-12-18 12:58:21 +08:00
jaime
ee7dffc758
fix: sync task still running after DataNode has stopped (#38441)
issue: #38319
pr: #38377

---------

Signed-off-by: jaime <yun.zhang@zilliz.com>
2024-12-18 12:38:47 +08:00
Zhen Ye
2e2f61538f
fix: kafka use shared channel to receive produce result (#38534)
issue: #38531
pr: #38532

---------

Signed-off-by: chyezh <chyezh@outlook.com>
2024-12-18 10:36:49 +08:00
yihao.dai
70d2b58533
fix: [2.4] Fix inaccurate general count (#38525)
Checking general count should only count healthy collections and
partitions.

issue: https://github.com/milvus-io/milvus/issues/37630

pr: https://github.com/milvus-io/milvus/pull/38524

---------

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
2024-12-18 10:26:46 +08:00
Xianhui Lin
c24f666f1b
fix: [2.4] Fix bug for Search fails with filter expression contains underscore (#38302)
Enhance the matching for elements within the UnaryRangeArray
https://github.com/milvus-io/milvus/issues/38068

---------

Signed-off-by: Xianhui.Lin <xianhui.lin@zilliz.com>
2024-12-18 10:22:47 +08:00
zhuwenxing
989c66c7eb
test: add lib for supporting higher python version (#38477)
pr:  https://github.com/milvus-io/milvus/pull/38475

---------

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
2024-12-17 14:48:50 +08:00
zhenshan.cao
4d3d4be379
enhance: [skip e2e] Add new maintainers (#38508)
pr: https://github.com/milvus-io/milvus/pull/38507

Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
2024-12-17 11:04:18 +08:00
congqixia
6f573f64a5
enhance: [2.4] Remove levelZeroMut totally (#38473) (#38495)
Cherry pick from master
pr: #38473
The level zero mutex could be remove since all operations are guarded by
segment manager mutex

---------

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2024-12-17 10:18:45 +08:00
wei liu
e03d3d5f49
enhance: Remove load task limit in one round (#38436) (#38497)
pr: #38436 #38454
the task limit in assignSegment/assignChannel will works for both load
task and balance task.

this PR remove the load task limit, only limit balance task num in one
round.

---------

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
2024-12-17 10:12:45 +08:00
Bingyi Sun
aad59b82a2
fix: Escape prefix before search in inverted index (#37925) (#38425)
issue: https://github.com/milvus-io/milvus/issues/37912
pr: #37925

---------

Signed-off-by: sunby <sunbingyi1992@gmail.com>
2024-12-16 19:32:46 +08:00
congqixia
f878dbf8d2
enhance: [2.4] Bump golang/x/crypto for all packages (#38445) (#38470)
Cherry pick from master
pr: #38445
Related to #38446
See also https://github.com/milvus-io/milvus/security/dependabot/103

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2024-12-16 14:36:45 +08:00
Xianhui Lin
352e51a88d
enhance: [2.4]alterdatabase support delete property (#38450)
alterdatabase support delete property
issue: https://github.com/milvus-io/milvus/issues/38379

---------

Signed-off-by: Xianhui.Lin <xianhui.lin@zilliz.com>
2024-12-15 17:40:44 +08:00
SimFG
4c896c628c
fix: [2.4] replicate message exception when the ttMsgEnable config is changed dynamically (#38440)
- issue: #38177
- pr: #38178

Signed-off-by: SimFG <bang.fu@zilliz.com>
2024-12-14 23:24:51 +08:00
Zhen Ye
1da4ac4159
enhance: add detail, replica count for resource group (#38315)
issue: #30647
pr: #38314

---------

Signed-off-by: chyezh <chyezh@outlook.com>
2024-12-13 14:14:49 +08:00
wei liu
83e162f5f1
enhance: Enable score based balance channel policy (#38143) (#38378)
issue: #38142
pr: #38143
current balance channel policy only consider current collection's
distribution, so if all collections has 1 channel, and all channels has
been loaded on same querynode, after querynode num increase, balance
channel won't be triggered.

This PR enable score based balance channel policy, to achieve:
1. distribute all channels evenly across multiple querynodes
2. distribute each collection's channel evenly across multiple
querynodes.

---------

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
2024-12-13 10:28:44 +08:00
SimFG
df73f93126
enhance: [2.4] pick some master improvements to 2.4 branch (#38128)
- issue: #38127

master pr list:
- #37759
- #37835
- #37845
- #37874
- #37894
- #37969
- #37983
- #38005
- #38035

---------

Signed-off-by: SimFG <bang.fu@zilliz.com>
2024-12-13 10:24:45 +08:00
cai.zhang
85ade98eba
fix: [2.4]Fix sorting buffer in clustering compaction (#38418)
issue: #28410 

master pr: #38417

Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
2024-12-13 10:12:49 +08:00
Xianhui Lin
24c8883369
enhance: [2.4]altercollection validation logic (#38421)
altercollection validation logic
issue: https://github.com/milvus-io/milvus/issues/37436
pr: https://github.com/milvus-io/milvus/pull/38419

---------

Signed-off-by: Xianhui.Lin <xianhui.lin@zilliz.com>
2024-12-12 21:46:44 +08:00
sthuang
19818c55b2
enhance: [2.4] add privilege group privilege into built-in privilege group (#38408)
cherry-pick from master: https://github.com/milvus-io/milvus/pull/38393
related issue: https://github.com/milvus-io/milvus/issues/37031

Signed-off-by: shaoting-huang <shaoting.huang@zilliz.com>
2024-12-12 19:56:43 +08:00
congqixia
cacac66c93
fix: [2.4] Check target partition load state only when dropping partition (#38375) (#38394)
Cherry pick from master
pr: #38375
Related to #38372

This PR make drop partition only check target partition load states only
in case of concurrent releasing other partition in same collection.

---------

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2024-12-12 17:18:43 +08:00
Ted Xu
e959860451
enhance: remove unnecessary clone in meta cache (#36628) (#38392)
See #36627

---------

pr: #36628

Signed-off-by: Ted Xu <ted.xu@zilliz.com>
2024-12-12 11:28:43 +08:00
nico
2e5537f050
test: update sdk version and cases (#38363)
pr: #38330

Signed-off-by: nico <cheng.yuan@zilliz.com>
2024-12-12 10:40:42 +08:00
Gao
d7e926f1cb
enhance: [2.4] support recall estimation (#38064)
issue: #37899 
pr: #38017

---------

Signed-off-by: chasingegg <chao.gao@zilliz.com>
2024-12-11 20:40:48 +08:00
wei liu
9b1a7287d1
enhance: Optimize save collection target latency (#38345) (#38370)
issue: #38237
pr: #38345
this PR only use better compression level for proto msg which is larger
than 1MB, and use a lighter compression level for smaller proto msg,
which could get a better latency in most case.

this PR could reduce the latency from 22.7s to 4.7s with 10000
collctions and each collections has 1000 segments.

before this PR:
BenchmarkTargetManager-8 1 22781536357 ns/op 566407275088 B/op 11188282
allocs/op
after this PR:
BenchmarkTargetManager-8 1 4729566944 ns/op 36713248864 B/op 10963615
allocs/op

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
2024-12-11 19:24:44 +08:00
cai.zhang
dde9d6c54f
fix:[2.4]Set the correct compactionFroms for clustering segments (#38376)
issue: #38373 
master pr: #36799 
This bug was introduced by PR #37653 .

Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
2024-12-11 19:02:43 +08:00
wei liu
b2a8b9c605
fix: Fix role be dropped when grant still exist. (#38342) (#38369)
issue: #38325
pr: #38342
the old impl only to check grant in default db before drop role, which
may cause role be dropped when grant still exist.

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
2024-12-11 17:26:43 +08:00
yihao.dai
9765db2465
fix: [2.4] Fix empty import task result (#38317)
Ensure the idempotency of import tasks to prevent duplicate tasks in
DataNode.

issue: https://github.com/milvus-io/milvus/issues/38313

pr: https://github.com/milvus-io/milvus/pull/38316

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
2024-12-11 15:42:49 +08:00
jaime
7cee01af44
fix: stream connection leak in case of error (#38321)
issue: #38318
pr: #38320

Signed-off-by: jaime <yun.zhang@zilliz.com>
2024-12-11 15:38:49 +08:00
cai.zhang
e758d8e4e8
fix: [2.4] Set the start time for index tasks that no need actual building (#38353)
issue: #38354

Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
2024-12-11 15:36:44 +08:00
cai.zhang
e843a464e1
enhance: [2.4]Skip create index for l0 segment (#38335)
master pr: #38334

Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
2024-12-11 15:02:44 +08:00
Xianhui Lin
d8753a1489
enhance: [2.4]alterindex & altercollection supports altering properties (#38361)
enhance :

alterindex delete properties
We have introduced a new parameter deleteKeys to the alterindex
functionality, which allows for the deletion of properties within an
index. This enhancement provides users with the flexibility to manage
index properties more effectively by removing specific keys as needed.
altercollection delete properties
We have introduced a new parameter deleteKeys to the altercollection
functionality, which allows for the deletion of properties within an
collection. This enhancement provides users with the flexibility to
manage collection properties more effectively by removing specific keys
as needed.
3.support altercollectionfield
We currently support modifying the fieldparams of a field in a
collection using altercollectionfield, which only allows changes to the
max-length attribute.
Key Points:

New Parameter - deleteKeys: This new parameter enables the deletion of
specified properties from an index. By passing a list of keys to
deleteKeys, users can remove the corresponding properties from the
index.

Mutual Exclusivity: The deleteKeys parameter cannot be used in
conjunction with the extraParams parameter. Users must choose one
parameter to pass based on their requirement. If deleteKeys is provided,
it indicates an intent to delete properties; if extraParams is provided,
it signifies the addition or update of properties.

issue: https://github.com/milvus-io/milvus/issues/37436
pr: https://github.com/milvus-io/milvus/pull/37437

---------

Signed-off-by: Xianhui.Lin <xianhui.lin@zilliz.com>
2024-12-11 11:46:43 +08:00
jaime
ee403442f6
fix: [skip e2e] unstable ut in services_test.go (#38356)
issue: #35563

Signed-off-by: jaime <yun.zhang@zilliz.com>
2024-12-11 11:22:44 +08:00
SimFG
fc4a0b1463
enhance: [2.4] keep the latest snapshot key if the origin key is existed (#38351)
/kind improvement
- pr: #38333

Signed-off-by: SimFG <bang.fu@zilliz.com>
2024-12-11 10:24:50 +08:00