Skip to content

Commit 097f583

Browse files
authored
fix: Fix a bug of connection cache for collection schema (#3071)
Fix: #3058 Signed-off-by: yhmo <yihua.mo@zilliz.com>
1 parent 9016609 commit 097f583

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pymilvus/client/grpc_handler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,8 @@ def drop_collection(self, collection_name: str, timeout: Optional[float] = None,
328328
request, timeout=timeout, metadata=_api_level_md(**kwargs)
329329
)
330330
check_status(status)
331+
if collection_name in self.schema_cache:
332+
self.schema_cache.pop(collection_name)
331333

332334
@retry_on_rpc_failure()
333335
def add_collection_field(

0 commit comments

Comments
 (0)