Uploaded image for project: 'liquibase-util'
  1. liquibase-util
  2. LIQUTIL-17

Pass exceptions, don't catch and swallow them

    XMLWordPrintable

Details

    • CP: sprint 134
    • 0
    • Core: Platform
    • Lotus R1 2022
    • Implementation coding issue

    Description

      LiquibaseUtil catches exceptions, logs them, but swallows (ignores) them so that the caller assumes that the method succeeded successfully:

      https://github.com/folio-org/folio-liquibase-util/blob/v1.3.0/src/main/java/org/folio/liquibase/LiquibaseUtil.java#L46

      https://github.com/folio-org/folio-liquibase-util/blob/v1.3.0/src/main/java/org/folio/liquibase/LiquibaseUtil.java#L64

      See these reports of silent liquibase fails:

      RMB-895
      MODSOURCE-380
      MODSOURCE-381

      LiquibaseUtil should pass on all exceptions. Checked exceptions should be wrapped as unchecked exceptions to avoid a breaking change of the method declaration.

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                julianladisch Julian Ladisch
                julianladisch Julian Ladisch
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases