Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-5026

Fix startup methods that cause parallel tests to fail

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Core 2.1.0
    • Component/s: None
    • Labels:
      None

      Description

      We execute 5 tests parallel, so after we start up a fresh instance of a server those 5 tests hit the server at the same time and trigger context startup... Apparently, when it happens fast enough, the startup method may be executed twice or more thus we see in logs:

      INFO 1/31/17 2:05 PM:liquibase: Reading from `liquibasechangelog`
      INFO 1/31/17 2:05 PM:liquibase: Reading from `liquibasechangelog`
      INFO 1/31/17 2:05 PM:liquibase: Reading from `liquibasechangelog`
      It's an evidence of triggering the startup procedure 3 times (starting from updating database). It will then end in obscure failures like DataIntegrityViolationExceptio

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                dkayiwa Daniel Kayiwa
                Reporter:
                dkayiwa Daniel Kayiwa
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: