Uploaded image for project: 'Common Controller SDK'
  1. Common Controller SDK
  2. CCSDK-2012

BP Processor was not respecting timeouts... cmd-executors (with erroneous scripts) would hang BP processor

XMLWordPrintable

      Although there is a provision for timeout (180 sec by default) in applyNB in AbstractComponentFunction, in practice, it didn't work.

      We have identified the following sequence of events.

      1. Client was running a python script inside command executor that was doing HTTP connect using 'requests' library. By default, the connect method has timeout of NONE. The client script didn't specify a timeout. Hence the connect method was hanging.
      2. command executor (and I think py-executor may suffer from the same issue, I'll check later) doesn't check for timeout, hence the python script will keep running
      3. Blueprintsprocessor has the provision for 180 second timeout by default, but it's not wrapped in proper execution hence that timeout is not respected.. We have tested that it will keep running..

      When this happens, we end up with starvation of BP processor threads.

            omimtl omimtl
            omimtl omimtl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: