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

CFG values and applied values are mismatching while trying to set a property with an invalid value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.10.0
    • Component/s: None
    • Labels:

      Description

      Scenario:
      onos> cfg set org.onosproject.store.packet.impl.DistributedPacketStore messageHandlerThreadPoolSize 8

      It will set the messageHandlerThreadPoolSize value as 8.

      onos> cfg set org.onosproject.store.packet.impl.DistributedPacketStore messageHandlerThreadPoolSize TEN

      Actually 'messageHandlerThreadPoolSize' should be an integer, so, in DistributedPacketStore we are handling this number format exception and the previous value (8)will be applied if any exception. In this case , applied 'messageHandlerThreadPoolSize' value in the DistributedPacketStore is 8(integer) and it is having "TEN"(string) in the cfg property store. When you are trying to get this parameter's value through REST/CLI, the value you will get is 'TEN'. Hence, there is a mismatch with the applied value in the DistributedPacketStore(8) and the cfg value(TEN).

      onos> cfg get org.onosproject.store.packet.impl.DistributedPacketStore messageHandlerThreadPoolSize
      name=messageHandlerThreadPoolSize, type=integer, value=TEN, defaultValue=4, description=Size of thread pool to assign message handler

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            sisubram sivachidambaram subramanian
            Reporter:
            sisubram sivachidambaram subramanian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: