Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-8246

Server side test hang with repeat "Waiting for the following bundles to start:..." in log

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • JUnit Core 1.0.20, JUnit Core 1.0.22, JUnit Core 1.0.23, JUnit Core 1.0.24, JUnit Core 1.0.26
    • None
    • None
    • OS: Windows, Linux
      Java: Java 1.8
    • Patch

    Description

      SLING-6334 - Server-Side Tests: Wait until all bundles are started be… had been a great feature for ensuring accurate test results. Thanks for having this feature available.

      I recently found that if there is a bundle failed to start; SLING-6334 doesn't timeout after DEFAULT_SYSTEM_STARTUP_INACTIVITY_TIMEOUT_SECONDS but waits infinitely with repeating log message

      26.01.2019 13:58:14.562 *INFO* [qtp980475582-2859] org.apache.sling.junit.impl.TestsManagerImpl Waiting for the following bundles to start: [adobe-aemfd-signatures [777], com.ags.forms.commom.ags_forms_common [854]]
      

      In my case, we needed the server side tests continue to work while the bundle starting problem being addressed in parallel. With some studies to the source code, the issue can be fixed by a single liner change in the attached .diff file.

      Hopefully, the problem can be addressed in the upcoming 1.0.27 release.

      Attachments

        1. patch.diff
          1 kB
          Scott Yuan

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yuansc Scott Yuan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0.5h Original Estimate - 0.5h
                  0.5h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 8.5h
                  8.5h