@@ -48,15 +48,15 @@ func (c *LoadCheck) Run(ctx context.Context, cluster orchestration.Cluster, opts
4848 return errors .New ("no uploaders requested, quiting" )
4949 }
5050
51- if o .MaxStorageRadius == 0 {
52- return errors .New ("max storage radius is not set" )
51+ if o .MaxCommittedDepth == 0 {
52+ return errors .New ("max committed depth is not set" )
5353 }
5454
5555 c .logger .Infof ("random seed: %v" , o .RndSeed )
5656 c .logger .Infof ("content size: %v" , o .ContentSize )
5757 c .logger .Infof ("max batch lifespan: %v" , o .MaxUseBatch )
58- c .logger .Infof ("max storage radius : %v" , o .MaxStorageRadius )
59- c .logger .Infof ("storage radius check wait time: %v" , o .StorageRadiusCheckWait )
58+ c .logger .Infof ("max committed depth : %v" , o .MaxCommittedDepth )
59+ c .logger .Infof ("committed depth check wait time: %v" , o .CommittedDepthCheckWait )
6060
6161 clients , err := cluster .NodesClients (ctx )
6262 if err != nil {
@@ -116,7 +116,7 @@ func (c *LoadCheck) Run(ctx context.Context, cluster orchestration.Cluster, opts
116116 default :
117117 }
118118
119- if ! c .checkStorageRadius (ctx , test .clients [txName ], o .MaxStorageRadius , o .StorageRadiusCheckWait ) {
119+ if ! c .checkcommittedDepth (ctx , test .clients [txName ], o .MaxCommittedDepth , o .CommittedDepthCheckWait ) {
120120 return
121121 }
122122
@@ -231,21 +231,21 @@ func (c *LoadCheck) Run(ctx context.Context, cluster orchestration.Cluster, opts
231231 return nil
232232}
233233
234- func (c * LoadCheck ) checkStorageRadius (ctx context.Context , client * bee.Client , maxRadius uint8 , wait time.Duration ) bool {
234+ func (c * LoadCheck ) checkcommittedDepth (ctx context.Context , client * bee.Client , maxDepth uint8 , wait time.Duration ) bool {
235235 for {
236- rs , err := client .ReserveState (ctx )
236+ statusResp , err := client .Status (ctx )
237237 if err != nil {
238238 c .logger .Infof ("error getting state: %v" , err )
239239 return false
240240 }
241- if rs . StorageRadius < maxRadius {
241+ if statusResp . CommittedDepth < maxDepth {
242242 return true
243243 }
244- c .logger .Infof ("waiting %v for StorageRadius to decrease. Current: %d, Max: %d" , wait , rs . StorageRadius , maxRadius )
244+ c .logger .Infof ("waiting %v for CommittedDepth to decrease. Current: %d, Max: %d" , wait , statusResp . CommittedDepth , maxDepth )
245245
246246 select {
247247 case <- ctx .Done ():
248- c .logger .Infof ("context done in StorageRadius check : %v" , ctx .Err ())
248+ c .logger .Infof ("context done while waiting for CommittedDepth to decrease : %v" , ctx .Err ())
249249 return false
250250 case <- time .After (wait ):
251251 }
0 commit comments