Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-3895

MonitorTests race condition

    XMLWordPrintable

    Details

      Description

      ava.lang.AssertionError: java.lang.AssertionError: 
      Expected: a value greater than <99.0>
           but: <0.0> was less than <99.0>
      

      The this.sendDuration.append() is done during afterSend() which is happened already after HandlerMetrics.afterHandle. Therefore sample is added yet and max remains 0.
      Move CountDownLatch to the appropriate place on the afterSend().

        Attachments

          Activity

            People

            Assignee:
            abilan Artem Bilan
            Reporter:
            abilan Artem Bilan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: