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

Debezium configuration can be modified after instantiation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 1.6.0.Beta1
    • None
    • core-library
    • None
    • False
    • False
    • Undefined
    • Hide
      Properties props = new Properties();
      props.setProperty("1", "1");
      props.setProperty("2", "2");
      
      Configuration config = Configuration.from(props);
      // modify the supplied properties
      props.setProperty("1", "replacedValue");
      // modification is reflected in the config
      assertThat(config.getString("1")).isEqualTo("replacedValue")
      
      Show
      Properties props = new Properties(); props.setProperty( "1" , "1" ); props.setProperty( "2" , "2" ); Configuration config = Configuration.from(props); // modify the supplied properties props.setProperty( "1" , "replacedValue" ); // modification is reflected in the config assertThat(config.getString( "1" )).isEqualTo( "replacedValue" )

    Description

      According  to the API docs of the Configuration#from(Properties)
      call, the resulting configuration object should not be modified after the call. However, this is not the case since changes to the supplied properties object result in changes to the configuration object.

      Attachments

        Activity

          People

            Unassigned Unassigned
            alf.jallow Alfusainey Jallow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: