@@ -48,18 +48,13 @@ func (t *AzureBlock) CommitList(listInfo *pipeline.TargetCommittedListInfo, numb
48
48
49
49
blockList := convertToStorageBlockList (lInfo .List , numberOfBlocks )
50
50
51
- if util .Verbose {
52
- fmt .Printf ("Final BlockList:\n " )
53
- for j := 0 ; j < numberOfBlocks ; j ++ {
54
- fmt .Printf (" [%2d]: ID=%s, Status=%s\n " , j , blockList [j ].ID , blockList [j ].Status )
55
- }
56
- }
51
+ util .PrintfIfDebug ("Blocklist -> blob: %s\n list:%+v" , targetName , blockList )
57
52
58
53
//if the max retries is exceeded, panic will happen, hence no error is returned.
59
54
duration , _ , _ := util .RetriableOperation (func (r int ) error {
60
55
if err := t .StorageClient .PutBlockList (t .Container , targetName , blockList ); err != nil {
61
56
t .resetClient ()
62
- return err
57
+ return fmt . Errorf ( " PUT Blocklist Failed: err:%s file:%s \n list:%+v \n --" , err , targetName , blockList )
63
58
}
64
59
return nil
65
60
})
@@ -123,15 +118,14 @@ func (t *AzureBlock) WritePart(part *pipeline.Part) (duration time.Duration, sta
123
118
headers := make (map [string ]string )
124
119
userAgent , _ := util .GetUserAgentInfo ()
125
120
headers ["User-Agent" ] = userAgent
126
-
121
+
127
122
//if the max retries is exceeded, panic will happen, hence no error is returned.
128
123
duration , startTime , numOfRetries = util .RetriableOperation (func (r int ) error {
129
124
//computation of the MD5 happens is done by the readers.
130
125
if part .IsMD5Computed () {
131
126
headers ["Content-MD5" ] = part .MD5 ()
132
127
}
133
128
134
-
135
129
if part .NumberOfBlocks == 1 {
136
130
if err := t .StorageClient .CreateBlockBlobFromReader (t .Container ,
137
131
part .TargetAlias ,
0 commit comments