@@ -284,7 +284,7 @@ func handleCleanup(ctx context.Context, odcClient *RpcClient, arguments map[stri
284284 defer utils .TimeTrackFunction (time .Now (), log .WithPrefix ("odcclient" ))
285285
286286 // First we query ODC for the full list of active partitions
287- req := & odcpb.StatusRequest {}
287+ req := & odcpb.StatusRequest {Running : true }
288288
289289 var err error = nil
290290 var rep * odcpb.StatusReply
@@ -353,25 +353,8 @@ func handleCleanup(ctx context.Context, odcClient *RpcClient, arguments map[stri
353353
354354 // Then the actual cleanup calls begin, one partition at a time...
355355 for odcPartitionId , _ := range partitionsToClean {
356- // This block tries to perform the regular teardown sequence.
357- // Since Shutdown is supposed to work in any state, we don't bail on error.
358- err := doReset (ctx , odcClient , arguments , odcPartitionId )
359- if err != nil {
360- log .WithError (printGrpcError (err )).
361- WithField ("level" , infologger .IL_Devel ).
362- WithField ("partition" , odcPartitionId ).
363- Warn ("ODC Reset call failed" )
364- }
365-
366- err = doTerminate (ctx , odcClient , arguments , odcPartitionId )
367- if err != nil {
368- log .WithError (printGrpcError (err )).
369- WithField ("level" , infologger .IL_Devel ).
370- WithField ("partition" , odcPartitionId ).
371- Warn ("ODC Terminate call failed" )
372- }
373356
374- err = doShutdown (ctx , odcClient , arguments , odcPartitionId )
357+ err = doShutdown (ctx , odcClient , arguments , odcPartitionId ) // FIXME make this parallel
375358 if err != nil {
376359 log .WithError (printGrpcError (err )).
377360 WithField ("level" , infologger .IL_Devel ).
0 commit comments