Skip to content

Commit

Permalink
NIFI-12525: Added property migration for the removed Consumer Hostnam…
Browse files Browse the repository at this point in the history
…e property in ConsumeAzureEventHub

Signed-off-by: Pierre Villard <[email protected]>

This closes apache#8171.
  • Loading branch information
turcsanyip authored and pvillard31 committed Dec 21, 2023
1 parent ca4ee24 commit 02d563e
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
import org.apache.nifi.flowfile.FlowFile;
import org.apache.nifi.flowfile.attributes.CoreAttributes;
import org.apache.nifi.logging.ComponentLog;
import org.apache.nifi.migration.PropertyConfiguration;
import org.apache.nifi.processor.AbstractSessionFactoryProcessor;
import org.apache.nifi.processor.ProcessContext;
import org.apache.nifi.processor.ProcessSession;
Expand Down Expand Up @@ -329,6 +330,11 @@ public Set<Relationship> getRelationships() {
return isRecordReaderSet && isRecordWriterSet ? RECORD_RELATIONSHIPS : RELATIONSHIPS;
}

@Override
public void migrateProperties(final PropertyConfiguration config) {
config.removeProperty("event-hub-consumer-hostname");
}

@Override
protected Collection<ValidationResult> customValidate(ValidationContext validationContext) {
final List<ValidationResult> results = new ArrayList<>();
Expand Down

0 comments on commit 02d563e

Please sign in to comment.