Add log when alloc time stamp failed

Signed-off-by: neza2017 <yefu.chen@zilliz.com>
pull/4973/head^2
neza2017 2021-04-01 11:25:30 +08:00 committed by yefu.chen
parent 2f0ed72e89
commit a532444da7
2 changed files with 4 additions and 0 deletions

2
.gitignore vendored
View File

@ -18,6 +18,8 @@ cmake-build-debug
cmake-build-release
cmake_build
*.code-workspace
# Docker generated cache file
.docker/

View File

@ -1436,6 +1436,7 @@ func (c *Core) ShowSegments(ctx context.Context, in *milvuspb.ShowSegmentsReques
func (c *Core) AllocTimestamp(ctx context.Context, in *masterpb.AllocTimestampRequest) (*masterpb.AllocTimestampResponse, error) {
ts, err := c.tsoAllocator.Alloc(in.Count)
if err != nil {
log.Debug("AllocTimestamp failed", zap.Error(err))
return &masterpb.AllocTimestampResponse{
Status: &commonpb.Status{
ErrorCode: commonpb.ErrorCode_UnexpectedError,
@ -1459,6 +1460,7 @@ func (c *Core) AllocTimestamp(ctx context.Context, in *masterpb.AllocTimestampRe
func (c *Core) AllocID(ctx context.Context, in *masterpb.AllocIDRequest) (*masterpb.AllocIDResponse, error) {
start, _, err := c.idAllocator.Alloc(in.Count)
if err != nil {
log.Debug("AllocID failed", zap.Error(err))
return &masterpb.AllocIDResponse{
Status: &commonpb.Status{
ErrorCode: commonpb.ErrorCode_UnexpectedError,