Uploaded image for project: 'OpenFlowPlugin'
  1. OpenFlowPlugin
  2. OPNFLWPLUG-806

Race condition in statistics collection related transaction chain handling

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • General
    • None
    • Operating System: All
      Platform: All

    • 7011
    • High

    Description

      I am attaching 16 switches to openflow plugin and installing random number of groups and flows to these switches and then disconnecting the switches. I am doing these steps in a loop. During this loop if any write transaction for writing statistics to operational data store fails, it eventually stops the stats collection for that specific node. There are two issues here:
      (1) TransactionChain close is not happening before the next cycle starts. So next iteration eventually end up using the same transaction chain and it throws exception in WriteTransaction.put() operation saying previous operation is not yet ready. This exception kills the HashWheelTimerTask for that specific node.
      (2) Even though if this exception is caught, pollStatistics() stops the statistics because it throws the similar exception. Following URL has the relevant log for the node for which stats collection stops.

      https://gist.githubusercontent.com/vishnoianil/5a5b6a68b93506bd27c760da866d1396/raw/b924c7fa5efed09df986c08f13febfd339b8d30b/gistfile1.txt

      Attachments

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

        Activity

          People

            Avishnoi Anil Vishnoi
            Avishnoi Anil Vishnoi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: