22176 Commits

Author SHA1 Message Date
cai.zhang
3ed3bf92e5
fix: [2.5] Ensure task execution order by using a priority queue (#43272)
issue: #43260 
master pr: #43271

Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
2025-07-23 10:16:54 +08:00
aoiasd
fe39128021
enhance: update lindera version (#43457)
relate: https://github.com/milvus-io/milvus/issues/43120
pr: https://github.com/milvus-io/milvus/pull/43121

Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>
2025-07-22 19:56:53 +08:00
Chun Han
ebb1ff35bb
fix: refine judgement for batch views(#38736) (#43479)
related: #38736
pr: https://github.com/milvus-io/milvus/pull/43481

Signed-off-by: MrPresent-Han <chun.han@gmail.com>
Co-authored-by: MrPresent-Han <chun.han@gmail.com>
2025-07-22 14:54:53 +08:00
XuanYang-cn
9b2e0edc36
enhance: Upgrade pymilvus to 2.5.14rc3 (#43472)
Signed-off-by: yangxuan <xuan.yang@zilliz.com>
2025-07-22 11:52:53 +08:00
wei liu
ad0bf9cad8
enhance: Optimize channel node balancing for uneven QN distribution (#42786) (#43423)
issue: #42860
pr: #42786
Fix channel node allocation when QueryNode count is not a multiple of
channel count. The previous algorithm used simple division which caused
uneven distribution with remainders.

Key improvements:
- Implement smart remainder distribution algorithm
- Refactor large function into focused helper functions
- Support two-phase rebalancing (release then allocate)
- Handle edge cases like insufficient nodes gracefully

---------

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
2025-07-21 17:04:54 +08:00
nico
0c316b9172
test: update nightly cases[2.5] (#43415)
pr: #43252

Signed-off-by: nico <cheng.yuan@zilliz.com>
2025-07-21 15:34:54 +08:00
zhuwenxing
4ec32aae3f
test:[cp2.5]add collection rename checker in chaos test (#43418)
pr: https://github.com/milvus-io/milvus/pull/43412

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
2025-07-21 14:08:53 +08:00
sre-ci-robot
ad88bbe905
[automated] Bump milvus version to v2.5.15 (#43437)
Bump milvus version to v2.5.15
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>
2025-07-19 13:22:52 +08:00
congqixia
3a3b374f11
enhance: Bump milvus & proto version to v2.5.15 (#43433)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
v2.5.15 pkg/v2.5.15
2025-07-18 19:02:52 +08:00
congqixia
8e957a203d
enhance: [2.5] Skip remove op if key in save set (#43426)
Cherry-pick from master
pr: #43425
Related to #43407

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2025-07-18 17:36:58 +08:00
congqixia
b657c076a4
fix: "fix: [2.5] Align null bitmap offset when loading multi-chunk (#43342)" (#43411)
Related to #43389
alternative of #43395

This reverts commit e54d92447ccd6d616fe58cadb112cf0c6a44a6e9.

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2025-07-18 17:14:52 +08:00
Spade A
ecf011aeb1
fix: update tantivy for fixing dir removing race condition #43399 (#43401)
pr: https://github.com/milvus-io/milvus/pull/43399
issue: https://github.com/milvus-io/milvus/issues/43258

Signed-off-by: SpadeA <tangchenjie1210@gmail.com>
2025-07-18 16:56:52 +08:00
foxspy
a6b2284de6
enhance: [2.5]update knowhere version (#43398)
issue: #42937 
/kind branch-feature

Signed-off-by: xianliang <xianliang.li@zilliz.com>
2025-07-18 16:20:52 +08:00
cai.zhang
867cab9ac1
fix: [2.5] Call AlterCollection when only rename collection (#43421)
issue: #43407 

master pr: #43420

Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
2025-07-18 15:47:07 +08:00
congqixia
b53e9e80d3
fix: [2.5] Make MultiSaveAndRemove execute removal first (#43409)
Cherry-pick from master
pr: #43408 
Related to #43407

When `MultiSaveAndRemove` like ops contains same key in saves and
removal keys it may cause data lost if the execution order is save first
than removal.

This PR make all the kv execute removal first then save the new values.
Even when same key appeared in both saves and removals, the new value
shall stay.

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2025-07-18 15:44:56 +08:00
XuanYang-cn
ba8c605be2
enhance: Upgrade PyMilvus to 2.5.13rc2 (#43368)
Signed-off-by: yangxuan <xuan.yang@zilliz.com>
2025-07-18 15:16:52 +08:00
XuanYang-cn
1165a5300f
fix: [cp25]Use diskSegmentMaxSize for coll with sparse and dense vectors (#43195)
Previous code uses diskSegmentMaxSize if and only if all of the
collection's vector fields are indexed with DiskANN index.

When introducing sparse vectors, since sparse vector cannot be indexed
with DiskANN index, collections with both dense and sparse vectors will
use maxSize instead.

This PR changes the requirments of using diskSegmentMaxSize to all dense
vectors are indexed with DiskANN indexs, ignoring sparse vector fields.

See also: #43193
pr: #43194

---------

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
2025-07-18 11:16:52 +08:00
congqixia
e54d92447c
fix: [2.5] Align null bitmap offset when loading multi-chunk (#43321) (#43342)
Cherry-pick from master
pr: #43321
Related to #43262

This patch fixes following logic bug:
- When multiple chunks are loaded and size cannot be divided by 8, just
appending uint8_t as bitmap will cause null bitmap dislocation
- `null_bitmap_data()` points to start of whole row group, which may not
stand for current `arrow::Array`

The current solutions is:
- Reorganize the null_bitmap with currect size & offset
- Pass `array->offset()` in tuple to info the current offset

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2025-07-17 12:16:52 +08:00
zhagnlu
385112e7e3
fix:fix text_match bug because of not adapting to multi-chunk model (#43297)
pr: #43303

Signed-off-by: luzhang <luzhang@zilliz.com>
Co-authored-by: luzhang <luzhang@zilliz.com>
2025-07-17 11:22:53 +08:00
Alexander Guzhva
71c0f64a16
fix: [2.5] fix incorrect bitset for the division comparison when the right is < 0 (#43180)
issue: #42900 
pr: #43179 

Upd: also handles Inf and NaN values, and the division by zero case for
fp32 and fp64

Signed-off-by: Alexandr Guzhva <alexanderguzhva@gmail.com>
2025-07-16 15:36:52 +08:00
Spade A
6ccf1aa9b8
fix: void copy when getting json chunk #43183 (#43202)
master https://github.com/milvus-io/milvus/pull/43183
fix: https://github.com/milvus-io/milvus/issues/43182

---------

Signed-off-by: SpadeA <tangchenjie1210@gmail.com>
2025-07-16 15:34:51 +08:00
congqixia
8ac3adcc52
enhance: Cherry pick commits for client/2.5.5 (#43316)
Cherry pick from master
pr: #43126 #43243

Also bump client version to v2.5.5 preparing for releasing

---------

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
client/v2.5.5
2025-07-16 01:42:51 +08:00
wei liu
b08d9efe69
fix: Prevent delegator unserviceable due to shard leader change (#42689) (#43309)
issue: #42098 #42404
pr: #42689
Fix critical issue where concurrent balance segment and balance channel
operations cause delegator view inconsistency. When shard leader
switches between load and release phases of segment balance, it results
in loading segments on old delegator but releasing on new delegator,
making the new delegator unserviceable.

The root cause is that balance segment modifies delegator views, and if
these modifications happen on different delegators due to leader change,
it corrupts the delegator state and affects query availability.

Changes include:
- Add shardLeaderID field to SegmentTask to track delegator for load
- Record shard leader ID during segment loading in move operations
- Skip release if shard leader changed from the one used for loading
- Add comprehensive unit tests for leader change scenarios

This ensures balance segment operations are atomic on single delegator,
preventing view corruption and maintaining delegator serviceability.

---------

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
2025-07-15 17:46:51 +08:00
zhikunyao
180214d406
test: update pytest base image 2.5 (#43328)
pr: #43327

Signed-off-by: Zhikun Yao <zhikun.yao@zilliz.com>
2025-07-15 15:34:51 +08:00
Spade A
21d6866a56
fix: fix text match index / json key stats index leak when segment released (#43308)
pr: https://github.com/milvus-io/milvus/pull/42655
issue: https://github.com/milvus-io/milvus/issues/42626

Signed-off-by: SpadeA <tangchenjie1210@gmail.com>
2025-07-15 15:22:18 +08:00
Bingyi Sun
fb25da1419
enhance: Save meta with txn limit (#43263) (#43287)
pr: #43263

Signed-off-by: sunby <sunbingyi1992@gmail.com>
2025-07-14 16:42:50 +08:00
wei liu
4952b8c416
enhance: apply load config changes after QueryCoord restart (#43108) (#43236)
issue: #43107
pr: #43108
- Add checkLoadConfigChanges() to apply load config during startup
- Call config check in startQueryCoord() after restart
- Skip auto-updates for collections with user-specified replica numbers
- Add is_user_specified_replica_mode field to preserve user settings
- Add comprehensive unit tests with mockey

Ensures existing collections use latest cluster-level config after
restart.

---------

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
2025-07-14 10:22:50 +08:00
wei liu
33e9b873de
enhance: add logs for count(*) (#43001) (#43249)
pr: #43001

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
2025-07-11 19:14:48 +08:00
cai.zhang
fa382ed50a
fix: [2.5] Fix regeneratePartitionStats failed after restore clusteringCompactionTask (#43206)
issue: #43186 
master pr: #43205

---------

Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
2025-07-10 15:30:48 +08:00
yihao.dai
e0729bf1ae
enhance: [2.5] Print segments info after import done (#43201)
issue: https://github.com/milvus-io/milvus/issues/42488

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

---------

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
2025-07-10 14:58:49 +08:00
cai.zhang
b900e4a63a
fix: [2.5] Handle error for invalid function params and prevent panic (#43190)
issue: #43188 
master pr: #43189

Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
2025-07-09 11:40:47 +08:00
Xianhui Lin
bdfc740a73
feat: [2.5]reorder RootCoord shutdown to the last in stopCoordinators (#43024)
reorder RootCoord shutdown to the last in stopCoordinators
issue:https://github.com/milvus-io/milvus/issues/43018

Signed-off-by: Xianhui.Lin <xianhui.lin@zilliz.com>
2025-07-07 17:08:49 +08:00
congqixia
e13b55fc0a
fix: [2.5] Remove trimming space logic when validating collection name (#43064) (#43138)
Cherry-pick from master
pr: #43064
Related to #43031

---------

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2025-07-07 09:54:46 +08:00
Chun Han
4fe8011a70
enhance: refine variable-length-type memory usage(#38736) (#43093)
related: #38736
pr: https://github.com/milvus-io/milvus/pull/39578

Signed-off-by: MrPresent-Han <chun.han@gmail.com>
Co-authored-by: MrPresent-Han <chun.han@gmail.com>
2025-07-04 18:26:45 +08:00
congqixia
2531ebda27
fix: [2.5] Check field mmap property before apply collection level one (#43091)
Cherry-pick from master
pr: #43090
Related to #43089

---------

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2025-07-03 14:32:45 +08:00
XuanYang-cn
3666fced6c
enhance: Upgrade pymilvus to 2.5.12rc8 (#43084)
Signed-off-by: yangxuan <xuan.yang@zilliz.com>
2025-07-03 11:30:45 +08:00
yanliang567
c84e0119db
test: [cp 2.5]Add verfification tests for partition key filter and ttl issue (#43077)
related issue: #42918 
pr: #43052

also improve performance in check query results

---------

Signed-off-by: yanliang567 <yanliang.qiao@zilliz.com>
2025-07-03 10:22:46 +08:00
nico
5f7ef6d9dd
test: update test cases[2.5] (#42998)
pr: #42991

Signed-off-by: nico <cheng.yuan@zilliz.com>
2025-07-03 09:18:51 +08:00
yihao.dai
53cd81b2aa
fix: [2.5] Fix index blocked by failed sort stats (#43061)
When l0 compaction is executing, do not mark the stats task as failed;
keep it in the init state to allow retry.

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

---------

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
2025-07-02 22:32:45 +08:00
zhikunyao
d6ee1d1c3c
enhance: update minio to RELEASE.2024-05-28T17-19-04Z (#43071)
pr: #43063

Signed-off-by: Zhikun Yao <zhikun.yao@zilliz.com>
2025-07-02 16:18:45 +08:00
wei liu
73210303a9
fix: Fix exclude nodes clearing logic position in load balancer retry (#43002)
issue: #42994
pr: #42577 #40438

cp partial logic from pr #42577 and #40438

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
2025-06-30 16:10:44 +08:00
zhikunyao
23f4c2adf5
enhance: fix cmake version update to 3.31.8 (#43017)
Signed-off-by: Zhikun Yao <zhikun.yao@zilliz.com>
2025-06-30 14:24:43 +08:00
zhikunyao
fc97b06239
enhance: update cmake version in .env (#43011)
Signed-off-by: Zhikun Yao <zhikun.yao@zilliz.com>
2025-06-30 10:24:54 +08:00
sre-ci-robot
af8479b084
enhance: update cmake version to 3.31.8 (#43004)
Signed-off-by: Zhikun Yao <zhikun.yao@zilliz.com>
Co-authored-by: Zhikun Yao <zhikun.yao@zilliz.com>
2025-06-28 15:56:44 +08:00
sre-ci-robot
7208225f5d
[automated] Bump milvus version to v2.5.14 (#43006)
Bump milvus version to v2.5.14
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>
2025-06-28 15:54:47 +08:00
zhikunyao
4e98647cf5
test: [skip e2e]update helm to fix kafka image update (#42997)
pr: #42993

Signed-off-by: Zhikun Yao <zhikun.yao@zilliz.com>
2025-06-27 17:17:43 +08:00
congqixia
062fc368a5
enhance: Bump milvus & proto version to v2.5.14 (#42967)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pkg/v2.5.14 v2.5.14
2025-06-26 18:18:43 +08:00
Chun Han
bfa9688da3
enhance: supporting separate chunk cache pool(#42803) (#42901)
related: #42803

1. add a new thread pools using folly::CPUThreadPoolExecutor, named by
FThreadPools
2. reading vectors from chunkcache will use the separated
CHUNKCACHE_POOL to avoid being influenced by load collection
3. Note. For safety on cloud side on 2.5.x, only read-chunk-cache
operations is using this newly created thread pools other caller points
for threadpool will be mutated in the near future
4. master-branch doesn't need this pr as caching layer unified the chunk
cache behaviour

Signed-off-by: MrPresent-Han <chun.han@gmail.com>
Co-authored-by: MrPresent-Han <chun.han@gmail.com>
2025-06-26 15:52:43 +08:00
yihao.dai
5aaaef3f7e
fix: [2.5] Consider fields number when preallocating ids for import (#42935)
In corner cases where there are many fields but only a small number of
rows to import, the default preallocated IDs may be insufficient. To
address this, consider the number of fields when preallocating IDs.

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

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

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
2025-06-26 09:56:41 +08:00
foxspy
47f265864b
enhance: [2.5] update knowhere version for milvus 2.5.14 (#42939)
issue: #42937 
pr: #42938

Signed-off-by: xianliang.li <xianliang.li@zilliz.com>
2025-06-25 21:06:43 +08:00