milvus-io / milvus-sdk-go

Go SDK for Milvus.
Apache License 2.0
342 stars 107 forks source link

[Bug]: Default grpc received message size 4194304(4MB) is too small #831

Open ThreadDao opened 2 days ago

ThreadDao commented 2 days ago

Is there an existing issue for this?

Current Behavior

Query and output 1000 1536-dim vectors failed:

2024/10/16 16:30:25 Failed to query Milvus:rpc error: code = ResourceExhausted desc = grpc: received message larger than max (6153075 vs. 4194304)

User need to upgrade grpc.MaxCallRecvMsgSize. Maybe go sdk should a default MAX value. Java sdk is 2Gb, pymilvus is -1

milvusClient, err := client.NewGrpcClient(ctx, "localhost:19530", grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(67108864)))

Expected Behavior

No response

Steps To Reproduce

No response

Environment

No response

Anything else?

No response

ThreadDao commented 2 days ago

/assign @congqixia