From 282867a71ea0cdb1d13c751fe32936f409523ee6 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Mon, 2 Sep 2024 00:13:22 -0400 Subject: [PATCH] Show volume server which failed to verify a chunk (#5958) --- weed/shell/command_fs_verify.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/weed/shell/command_fs_verify.go b/weed/shell/command_fs_verify.go index 9fe5bc0cb..9b0e18f94 100644 --- a/weed/shell/command_fs_verify.go +++ b/weed/shell/command_fs_verify.go @@ -217,8 +217,8 @@ func (c *commandFsVerify) verifyEntry(path string, chunks []*filer_pb.FileChunk, if *c.concurrency == 0 { if err := c.verifyChunk(volumeServer, chunk.Fid); err != nil { if !(*c.metadataFromLog && strings.HasSuffix(err.Error(), "not found")) { - fmt.Fprintf(c.writer, "%s failed verify fileId %s: %+v\n", - fileMsg, chunk.GetFileIdString(), err) + fmt.Fprintf(c.writer, "%s failed verify fileId %s: %+v, at volume server %v\n", + fileMsg, chunk.GetFileIdString(), err, volumeServer) } if itemIsVerifed.Load() { itemIsVerifed.Store(false) @@ -245,8 +245,8 @@ func (c *commandFsVerify) verifyEntry(path string, chunks []*filer_pb.FileChunk, defer wg.Done() if err := c.verifyChunk(volumeServer, fChunk.Fid); err != nil { if !(*c.metadataFromLog && strings.HasSuffix(err.Error(), "not found")) { - fmt.Fprintf(c.writer, "%s failed verify fileId %s: %+v\n", - msg, fChunk.GetFileIdString(), err) + fmt.Fprintf(c.writer, "%s failed verify fileId %s: %+v, at volume server %v\n", + msg, fChunk.GetFileIdString(), err, volumeServer) } if itemIsVerifed.Load() { itemIsVerifed.Store(false)