mirror of https://github.com/milvus-io/milvus.git
Add log when alloc time stamp failed
Signed-off-by: neza2017 <yefu.chen@zilliz.com>pull/4973/head^2
parent
2f0ed72e89
commit
a532444da7
|
@ -18,6 +18,8 @@ cmake-build-debug
|
|||
cmake-build-release
|
||||
cmake_build
|
||||
|
||||
*.code-workspace
|
||||
|
||||
# Docker generated cache file
|
||||
.docker/
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue