Uploaded image for project: 'Opencast'
  1. MH-9208

Default for capture.start.wait is too small (increase to 15s)

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed and reviewed
    • Affects versions: 1.4.0, 1.3
    • Fix versions: 1.4.0
    • Components: Legacy
    • Labels:
      None
    • Severity:
      Incorrectly Functioning With Workaround
    • Steps to reproduce:
      Hide
      We have seen production CAs fail to start recordings with the error below. Increasing the default timeout to 15s appears to have helped. Some captures have shown successful startup times from 6s to 10s subsequently.

      Steps to reproduce:

      1. Schedule recording with capture agent with Epiphan VGAUSB (possibly other hardware)
      2.
      3.
       
       Actual Results:
       
      Pipeline fails to start within 5s, capture is aborted with log:

       2012-09-06 12:10:01 DEBUG (GStreamerPipeline:114) - Pipeline was unable to start after 5 seconds.
       
       Expected Results:
       
      Capture should start correctly.
       
       Workaround (if any):
       
      Set capture.start.wait=15 in org.opencastproject.capture.impl.ConfigurationManager.properties

      However, we should change the default in the code as well to avoid new adopters from having to figure this out from scratch:

      modules/matterhorn-capture-agent-impl/src/main/java/org/opencastproject/capture/pipeline/GStreamerPipeline.java

        // Grab time to wait for pipeline to start
          int wait;
          String waitProp = newRec.getProperty(CaptureParameters.CAPTURE_START_WAIT);
          if (waitProp != null) {
            wait = Integer.parseInt(waitProp);
          } else {
            wait = 5; // Default taken from gstreamer docs
          }

      Show
      We have seen production CAs fail to start recordings with the error below. Increasing the default timeout to 15s appears to have helped. Some captures have shown successful startup times from 6s to 10s subsequently. Steps to reproduce: 1. Schedule recording with capture agent with Epiphan VGAUSB (possibly other hardware) 2. 3.    Actual Results:   Pipeline fails to start within 5s, capture is aborted with log:  2012-09-06 12:10:01 DEBUG (GStreamerPipeline:114) - Pipeline was unable to start after 5 seconds.    Expected Results:   Capture should start correctly.    Workaround (if any):   Set capture.start.wait=15 in org.opencastproject.capture.impl.ConfigurationManager.properties However, we should change the default in the code as well to avoid new adopters from having to figure this out from scratch: modules/matterhorn-capture-agent-impl/src/main/java/org/opencastproject/capture/pipeline/GStreamerPipeline.java   // Grab time to wait for pipeline to start     int wait;     String waitProp = newRec.getProperty(CaptureParameters.CAPTURE_START_WAIT);     if (waitProp != null) {       wait = Integer.parseInt(waitProp);     } else {       wait = 5; // Default taken from gstreamer docs     }
    • Tags (folksonomy):

      TestRail: Results

        Attachments

          Activity

            People

            • Assignee:
              etmoyo Edmore Moyo
              Reporter:
              smarquard Stephen Marquard
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                TestRail: Cases