adjust error handling

fix https://github.com/seaweedfs/seaweedfs/issues/5677
This commit is contained in:
chrislu
2024-06-17 10:59:41 -07:00
parent e9cee59c8c
commit a829f36d17
4 changed files with 4 additions and 4 deletions

View File

@@ -74,7 +74,7 @@ func followUpdatesAndUploadToRemote(option *RemoteSyncOptions, filerSource *sour
DirectoriesToWatch: nil,
StartTsNs: lastOffsetTs.UnixNano(),
StopTsNs: 0,
EventErrorType: pb.TrivialOnError,
EventErrorType: pb.RetryForeverOnError,
}
return pb.FollowMetadata(pb.ServerAddress(*option.filerAddress), option.grpcDialOption, metadataFollowOption, processEventFnWithOffset)