Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-2886

source database config not read from Fargate-provided environment without placeholder in application.properties

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 1.4.0.CR1
    • debezium-server
    • None
    • False
    • False
    • Undefined
    • Hide
      1. create a docker image with openjdk 8 & debezium-server 1.4.0.CR1
      2. upload that image to AWS ECR
      3. go to AWS ECS and launch the image you've just uploaded in a Fargate cluster, providing Postgres configuration via environment variables.  You don't actually need a server, since the failure is before the connection attempt
      4. wait for the task to finish provisioning and crash with a failed connection
      5. check the logs for `ERROR [io.deb.con.com.BaseSourceTask] (pool-3-thread-1) The 'database.user' value is invalid: A value is required`
      Show
      create a docker image with openjdk 8 & debezium-server 1.4.0.CR1 upload that image to AWS ECR go to AWS ECS and launch the image you've just uploaded in a Fargate cluster, providing Postgres configuration via environment variables.  You don't actually need a server, since the failure is before the connection attempt wait for the task to finish provisioning and crash with a failed connection check the logs for `ERROR [io.deb.con.com.BaseSourceTask] (pool-3-thread-1) The 'database.user' value is invalid: A value is required`

    Description

      When running in AWS Fargate, the environment variable `debezium_source_database_user` is not respected unless a placeholder `debezium.source.database.user` is specified in an `application.properties` file.  When a placeholder is specified in that way, the value from the environment is used instead as expected.  When running in docker locally, I do not have this issue.  This also affects the `server.name` and `password` database config, but is not affecting Quarkus log levels.

       

      edit: This also affects `debezium_source_table_include_list`

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mbeary Matt Beary (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: