mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Add Statistic entity id log for datacoord (#24073)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
7407669a02
commit
f6dec281c4
@ -284,7 +284,9 @@ func (s *Server) GetInsertBinlogPaths(ctx context.Context, req *datapb.GetInsert
|
||||
// GetCollectionStatistics returns statistics for collection
|
||||
// for now only row count is returned
|
||||
func (s *Server) GetCollectionStatistics(ctx context.Context, req *datapb.GetCollectionStatisticsRequest) (*datapb.GetCollectionStatisticsResponse, error) {
|
||||
log := log.Ctx(ctx)
|
||||
log := log.Ctx(ctx).With(
|
||||
zap.Int64("collectionID", req.GetCollectionID()),
|
||||
)
|
||||
log.Info("received request to get collection statistics")
|
||||
resp := &datapb.GetCollectionStatisticsResponse{
|
||||
Status: &commonpb.Status{
|
||||
@ -306,7 +308,9 @@ func (s *Server) GetCollectionStatistics(ctx context.Context, req *datapb.GetCol
|
||||
// if partID is empty, return statistics for all partitions of the collection
|
||||
// for now only row count is returned
|
||||
func (s *Server) GetPartitionStatistics(ctx context.Context, req *datapb.GetPartitionStatisticsRequest) (*datapb.GetPartitionStatisticsResponse, error) {
|
||||
log := log.Ctx(ctx)
|
||||
log := log.Ctx(ctx).With(
|
||||
zap.Int64s("partitionIDs", req.GetPartitionIDs()),
|
||||
)
|
||||
resp := &datapb.GetPartitionStatisticsResponse{
|
||||
Status: &commonpb.Status{
|
||||
ErrorCode: commonpb.ErrorCode_UnexpectedError,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user