aboutsummaryrefslogtreecommitdiff
path: root/weed/shell
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-06-03 10:38:21 -0700
committerChris Lu <chris.lu@gmail.com>2019-06-03 10:38:21 -0700
commitd85b41b9048cb336265298e47789838f7a5e597c (patch)
tree30cc3668eaa12cd42ad46941636242b688434783 /weed/shell
parent7e80b2b8823a9bb8bac58100a76d6a5825c94be4 (diff)
downloadseaweedfs-d85b41b9048cb336265298e47789838f7a5e597c.tar.xz
seaweedfs-d85b41b9048cb336265298e47789838f7a5e597c.zip
fix ec.encode not finding the local ec shards
Diffstat (limited to 'weed/shell')
-rw-r--r--weed/shell/command_ec_common.go4
-rw-r--r--weed/shell/command_ec_encode.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/weed/shell/command_ec_common.go b/weed/shell/command_ec_common.go
index 0cbf694cd..b5560b560 100644
--- a/weed/shell/command_ec_common.go
+++ b/weed/shell/command_ec_common.go
@@ -62,7 +62,7 @@ func oneServerCopyAndMountEcShardsFromSource(ctx context.Context, grpcDialOption
SourceDataNode: existingLocation,
})
if copyErr != nil {
- return copyErr
+ return fmt.Errorf("copy %d.%v %s => %s : %v\n", volumeId, shardIdsToCopy, existingLocation, targetServer.info.Id, copyErr)
}
}
@@ -73,7 +73,7 @@ func oneServerCopyAndMountEcShardsFromSource(ctx context.Context, grpcDialOption
ShardIds: shardIdsToCopy,
})
if mountErr != nil {
- return mountErr
+ return fmt.Errorf("mount %d.%v on %s : %v\n", volumeId, shardIdsToCopy, targetServer.info.Id, mountErr)
}
if targetServer.info.Id != existingLocation {
diff --git a/weed/shell/command_ec_encode.go b/weed/shell/command_ec_encode.go
index 94265a874..f84fcf303 100644
--- a/weed/shell/command_ec_encode.go
+++ b/weed/shell/command_ec_encode.go
@@ -97,7 +97,7 @@ func doEcEncode(ctx context.Context, commandEnv *commandEnv, collection string,
// balance the ec shards to current cluster
err = spreadEcShards(ctx, commandEnv, vid, collection, locations)
if err != nil {
- return fmt.Errorf("spread ec shards for volume %d to %s: %v", vid, locations[0].Url, err)
+ return fmt.Errorf("spread ec shards for volume %d from %s: %v", vid, locations[0].Url, err)
}
return nil