Uploaded image for project: 'Subscription Watch'
  1. Subscription Watch
  2. SWATCH-3661

Validate schema when starting services

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 2025-07-08 - API
    • None
    • None
    • None
    • 5
    • False
    • Hide

      None

      Show
      None
    • False

      After SWATCH-2820, we stopped validating the schema when starting up a service which is critical for production.

      What is the problem? If we don't validate the schema, the service might start ok, but due to the migrations didn't run ok or didn't run at all, we will only spot the issue when the service works.

      Reproducer:

      • start all the database and kafka services
      • start the swatch contracts service in dev mode

      The service will start ok, however because at the moment, liquibase is not configured in dev mode, the data schema is not ok, so the service should fail.

      Acceptance Criteria

      • All the SWATCH services (spring boot and quarkus) should validate the schema at start up.

              jcarvaja@redhat.com Jose Carvajal Hilario
              jcarvaja@redhat.com Jose Carvajal Hilario
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: