pymilvus icon indicating copy to clipboard operation
pymilvus copied to clipboard

fix:release partition before drop it

Open wildBigPanda opened this issue 2 years ago • 4 comments

when call Collection drop_partition func,has error:

pymilvus.decorators | RPC error: [drop_partition], <MilvusException: (code=1, message=partition cannot be dropped, partition is loaded, please release it first)>, <Time:{'RPC start': '2024-03-28 16:13:04.921025', 'RPC error': '2024-03-28 16:13:04.923609'}>

fix Collection drop_partition func call,release partition before drop it

wildBigPanda avatar Mar 28 '24 08:03 wildBigPanda

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: wildBigPanda To complete the pull request process, please assign xuanyang-cn after the PR has been reviewed. You can assign the PR to them by writing /assign @xuanyang-cn in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

sre-ci-robot avatar Mar 28 '24 08:03 sre-ci-robot

Welcome @wildBigPanda! It looks like this is your first PR to milvus-io/pymilvus 🎉

sre-ci-robot avatar Mar 28 '24 08:03 sre-ci-robot

@wildBigPanda This behaviour is by design

XuanYang-cn avatar Apr 02 '24 02:04 XuanYang-cn

@XuanYang-cn Is the design unreasonable? To drop partition, you have to call the release interface again separately, and the related interface for releasing partitions cannot be found in [collection.py]. How can you release it and drop a partitions?

wildBigPanda avatar Apr 02 '24 02:04 wildBigPanda