Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6229368

Wrong getThreshold value in CounterMonitor with offset, threshold and modulus.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 6
    • core-svc
    • None
    • b43
    • generic
    • generic

      Wrong getThreshold value in CounterMonitor with offset, threshold and modulus.

      I have a counter with an initThreshold of 1, an offset of 1 and a modulus of 5,
      running in counter mode (not differencing). Over time it has reached a state
      where the current value is 4 and the threshhold has bumped to 5.

      If I then set the observed attribute to the value 5, a notification is
      generated (cool) and in JDK1.5 the threshold is raised to 6. If I then
      set it to 6, I get another value and the threshold is raised to 7.

      How can the value of the threshold be greater than the modulus?
      ###@###.### 2005-2-15 15:14:53 GMT

            lmalvent Luis-Miguel Alventosa (Inactive)
            lmalvent Luis-Miguel Alventosa (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: