Skip to content

Commit

Permalink
fix: "Error triggering dispatcher" race condition
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Mitchell <nickm@us.ibm.com>
  • Loading branch information
starpit committed Nov 26, 2024
1 parent 2c216d8 commit 267f7e6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pkg/runtime/queue/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,13 @@ func (s3 S3Client) Rm(bucket, filePath string) error {
}

func (s3 S3Client) Mark(bucket, filePath, marker string) error {
_, err := s3.client.PutObject(s3.context, bucket, filePath, strings.NewReader(marker), int64(len(marker)), minio.PutObjectOptions{})
return err
for {
if _, err := s3.client.PutObject(s3.context, bucket, filePath, strings.NewReader(marker), int64(len(marker)), minio.PutObjectOptions{}); err == nil {
return nil
} else if !s3.retryOnError(err) {
return err
}
}
}

func (s3 S3Client) StreamingUpload(bucket, filePath string, reader io.Reader) error {
Expand Down

0 comments on commit 267f7e6

Please sign in to comment.