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

Debezium Server verifies existence and format of the config file

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 2.0.0.Beta2
    • None
    • debezium-server
    • None

      Feature request or enhancement

      For feature requests or enhancements, provide this information, please:

      Which use case/requirement will be addressed by the proposed feature?

      Background: Currently when Debezium can not locate the config file in the specified location, it gives an indication of the first element missing.  This doesn't help understanding where Debezium is looking for the file. If the file can be read by Debezium (permission or IO problem) etc

      Story: As a Debezium Server user I would like Debezium to give me clear indication it can reach, read and validate my config file so that I can easily fix if something is wrong

      Acceptance:

      Given a Debezium Server installation and a path to the config file without a config file there

      When I run Debezium Server then I get a message:

      Debezium is looking for configuration file  <PATH>/application.properties but this file can not be found

       

      Given a Debezium Server installation and a path to the config file with a config file there but with permissions that do not allow Debezium to read it

      When I run Debezium Server then I get a message:

      Debezium can not read file : <PATH>/application.properties permission denied

      Given a Debezium Server installation and a path to the config file with a config file there but the file is malformed (format problem or some property is missing)

      then I get a message indicating what the problem is

      Implementation ideas (optional)

      add validation to the methods load of class Builder in Configuration

      https://github.com/debezium/debezium/blob/1.9-maven-fix/debezium-core/src/main/java/io/debezium/config/Configuration.java#L668

            vjuranek@redhat.com Vojtech Juranek
            yaronp68@gmail.com Yaron Parasol (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: