File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1052,10 +1052,7 @@ func (r *PhysRestore) Snapshot(
1052
1052
1053
1053
var progress nodeStatus
1054
1054
defer func () {
1055
- // set failed status of node on error, but
1056
- // don't mark node as failed after the local restore succeed
1057
- restoreFailed := progress .isFailed ()
1058
- if err != nil && ! errors .Is (err , ErrNoDataForShard ) && restoreFailed {
1055
+ if err != nil && ! errors .Is (err , ErrNoDataForShard ) {
1059
1056
r .MarkFailed (err )
1060
1057
}
1061
1058
@@ -2662,6 +2659,8 @@ func (r *PhysRestore) checkDiskSpace(bcpSize int64) error {
2662
2659
2663
2660
// MarkFailed sets the restore and rs state as failed with the given message
2664
2661
func (r * PhysRestore ) MarkFailed (e error ) {
2662
+ r .log .Error ("mark error during restore: %v" , e )
2663
+
2665
2664
err := util .RetryableWrite (r .stg ,
2666
2665
r .syncPathNode + "." + string (defs .StatusError ), errStatus (e ))
2667
2666
if err != nil {
You can’t perform that action at this time.
0 commit comments