Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-4173

IllegalStateException due to Duplicate key in MeterManager.java

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.6.0
    • Component/s: None
    • Labels:
      None
    • Story Points:
      1

      Description

      IllegalStateException appears in MeterManager.java whenever trying to add/remove a Meter with MeterId equal to an already existing Meter in another device. (Note: In contrast to other Ids, MeterIds are unique just within each device).

      The attached log file shows what happens a MeterId with id=1 has already been created in device of:0000000000000001 and one attempts to create another one in of:0000000000000004 (also with id=1).

      A similar situation happens when one tries to remove meters that have the same ids in different devices.

      The issue appears to be in the pushMeterMetrics method and in particular in the storedMeterMap which uses MeterId as the key.

        Attachments

        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            Kostis Konstantinos Kanonakis
            Reporter:
            Kostis Konstantinos Kanonakis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: