mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-27 12:49:41 +08:00
Show volume server which failed to verify a chunk (#5958)
This commit is contained in:
parent
220061573d
commit
282867a71e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user