Menu

#24 Pipeline idlePause mis-used in threads

v1.4
open-fixed
5
2011-12-01
2009-03-04
No

idlePause is ms to pause when Map or Target has processing to do, but its input queue is empty. This happens when, e.g., the target gets ahead of the source/map. Once the thread concludes that it should rest, it sleeps idlePause milliseconds. This is correct.

However, at the end of every iteration, the thread ALSO pauses for this interval. It should NOT do this. It may still be desirable to put a pause in here, though, if there are resource deadlock issues or something. So we just need the pipeline to have Yet Another Pause attribute--iterationPause, say--and the loop should sleep for that amount instead of the idlePause.

Discussion

  • Todd Pierzina

    Todd Pierzina - 2009-06-02
    • assigned_to: nobody --> bshin3
     
  • Brian Shin

    Brian Shin - 2009-06-02

    added DEFAULT_ITERATION_PAUSE=0 in MigrationPipeline

     
  • Brian Shin

    Brian Shin - 2009-06-02
    • status: open --> closed-fixed
     
  • Todd Pierzina

    Todd Pierzina - 2011-12-01

    Code adjusted to pause only at beginning of each iteration. Added iterationPause as a separate property as described in the details.

     
  • Todd Pierzina

    Todd Pierzina - 2011-12-01
    • milestone: 897793 --> v1.4
    • status: closed-fixed --> open-fixed