feat(blob-uploader): upload blob once proposed (#1759)

Co-authored-by: yiweichi <yiweichi@users.noreply.github.com>
This commit is contained in:
Morty
2025-11-25 14:07:08 +08:00
committed by GitHub
parent 9dceae1ca2
commit 0ede0cd41f
2 changed files with 7 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ import (
"runtime/debug" "runtime/debug"
) )
var tag = "v4.7.1" var tag = "v4.7.2"
var commit = func() string { var commit = func() string {
if info, ok := debug.ReadBuildInfo(); ok { if info, ok := debug.ReadBuildInfo(); ok {

View File

@@ -242,10 +242,12 @@ func (b *BlobUploader) GetFirstUnuploadedBatchByPlatform(ctx context.Context, st
break break
} }
if len(batch.CommitTxHash) == 0 { // disable this check to upload blobs before it's committed. This is to
log.Debug("got batch not committed for blob uploading", "batch_index", batchIndex, "platform", platform.String()) // alleviate the case nodes try to fetch the blob from s3 before its uploaded.
return nil, nil // if len(batch.CommitTxHash) == 0 {
} // log.Debug("got batch not committed for blob uploading", "batch_index", batchIndex, "platform", platform.String())
// return nil, nil
// }
return batch, nil return batch, nil
} }