Skip to content

Commit

Permalink
Add error log for block write failed (#652)
Browse files Browse the repository at this point in the history
Co-authored-by: 杨赫然 <[email protected]>
  • Loading branch information
feiniks and 杨赫然 authored Mar 14, 2024
1 parent 058b740 commit 549c6b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fileserver/sync_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ func putSendBlockCB(rsp http.ResponseWriter, r *http.Request) *appError {
}

if err := blockmgr.Write(storeID, blockID, r.Body); err != nil {
err := fmt.Errorf("Failed to close block %.8s:%s", storeID, blockID)
err := fmt.Errorf("Failed to write block %.8s:%s: %v", storeID, blockID, err)
return &appError{err, "", http.StatusInternalServerError}
}

Expand Down

0 comments on commit 549c6b8

Please sign in to comment.