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

Threadpool's name is not appropriate in OSPF-SBI

    XMLWordPrintable

    Details

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

      Description

      In method named createPeerBootstrap() at ${ONOS_ROOT}/protocols/ospf/ctl/src/main/java/org/onosprojcet/ospf/controller/Controller.java, the threads' name should not be "onos/isis", but "onos/ospf"

      Source code is shown below:

      private ClientBootstrap createPeerBootStrap() {

      if (peerWorkerThreads == 0)

      { peerExecFactory = new NioClientSocketChannelFactory( Executors.newCachedThreadPool(groupedThreads("onos/isis", "boss-%d")), Executors.newCachedThreadPool(groupedThreads("onos/isis", "worker-%d"))); return new ClientBootstrap(peerExecFactory); }

      else

      { peerExecFactory = new NioClientSocketChannelFactory( Executors.newCachedThreadPool(groupedThreads("onos/isis", "boss-%d")), Executors.newCachedThreadPool(groupedThreads("onos/isis", "worker-%d")), peerWorkerThreads); return new ClientBootstrap(peerExecFactory); }

      }

        Attachments

        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            sangyun-han sangyun han
            Reporter:
            stone Boyuan Yan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: