smengcl commented on pull request #1898:
URL: https://github.com/apache/ozone/pull/1898#issuecomment-774096221


   > > @symious done, tho in a slightly different way :)
   > 
   > Oh, I was proposing
   > 
   > ```
   >         for (PipelineAction pipelineActionIter : actionsForEndpoint) {
   >           if (pipelineActionIter.getAction() == pipelineAction.getAction()
   >               && pipelineActionIter.hasClosePipeline() && pipelineAction
   >               .hasClosePipeline()
   >               && pipelineActionIter.getClosePipeline().getPipelineID()
   >               .equals(pipelineAction.getClosePipeline().getPipelineID())) {
   >             actionsForEndpoint.add(pipelineAction);
   >             break;
   >           }
   > ```
   
   hmm, IMO this loop wouldn't actually work as we expect. The goal of the loop 
inside was to iterate through all the existing actions before deciding if we 
need to queue it, IIUC?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to