public static void ensureAvroSchemaExists ( List < Config > configs , String prefix ) { Optional < Config > avroSchema = findByName ( configs , "avroSchema" ) ; if ( ! avroSchema . isPresent ( ) ) { configs . add ( new Config ( prefix + ".avroSchema" , null ) ) ; } }
There is a problem with some older stages that originally were not using our data parser library as the upgrade on those stages does not create all the properties that were introduced by the data parser library . For example File Tail origin doesn t support avro so the upgrade procedure doesn t use create the avro specific properties . This is normally not a problem as post - upgrade SDC will create all missing properties with default values . However this particular upgrade will fail if the property avroSchema is missing .