Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Akhilesh/conductor test #1487

Open
wants to merge 3 commits into
base: staging
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,7 @@ func (fsh *StorageHandler) CommitWrite(ctx context.Context, r *http.Request) (*b

err = checkPendingMarkers(ctx, allocationObj.ID)
if err != nil {
fmt.Println("Error checking pending markers", err)
Logger.Error("Error checking pending markers", zap.Error(err))
return nil, common.NewError("pending_markers", "previous marker is still pending to be redeemed")
}
Expand Down
3 changes: 3 additions & 0 deletions code/go/0chain.net/blobbercore/writemarker/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package writemarker

import (
"context"
"fmt"
"math/rand"
"strings"
"sync"
Expand Down Expand Up @@ -80,7 +81,9 @@ func SaveMarkerData(allocationID string, timestamp common.Timestamp, chainLength
func CheckProcessingMarker(allocationID string) bool {
markerDataMut.Lock()
defer markerDataMut.Unlock()
fmt.Println("CheckProcessingMarker", allocationID)
if data, ok := markerDataMap[allocationID]; ok {
fmt.Println("CheckProcessingMarker: data.processing", data.processing)
return data.processing
}
return false
Expand Down
Loading