This is an automated email from the ASF dual-hosted git repository. sijie pushed a commit to branch branch-2.1 in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.git
The following commit(s) were added to refs/heads/branch-2.1 by this push: new 5ac1322 Ignore unknown Properties from config file when parsing (#2336) 5ac1322 is described below commit 5ac1322a7e919217b3979ff1a13c9a7e6ea34541 Author: Sanjeev Kulkarni <sanjee...@gmail.com> AuthorDate: Tue Aug 7 20:41:13 2018 -0700 Ignore unknown Properties from config file when parsing (#2336) ### Motivation As Functions evolve, we will be adding new properties/fields to the FunctionConfig. There will be fields present in the config files that won't make sense for previous admin tool installation. This especially happens when submitting pulsar functions using newer client to run over kubernetes with an older installation of pulsar. This pr will mark the unknown fields to be ignored to get over that problem --- .../src/main/java/org/apache/pulsar/functions/utils/FunctionConfig.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pulsar-functions/utils/src/main/java/org/apache/pulsar/functions/utils/FunctionConfig.java b/pulsar-functions/utils/src/main/java/org/apache/pulsar/functions/utils/FunctionConfig.java index 0cd922e..e38249c 100644 --- a/pulsar-functions/utils/src/main/java/org/apache/pulsar/functions/utils/FunctionConfig.java +++ b/pulsar-functions/utils/src/main/java/org/apache/pulsar/functions/utils/FunctionConfig.java @@ -18,6 +18,7 @@ */ package org.apache.pulsar.functions.utils; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.Getter; @@ -48,6 +49,7 @@ import java.util.Map; @EqualsAndHashCode @ToString @isValidFunctionConfig +@JsonIgnoreProperties(ignoreUnknown = true) public class FunctionConfig { public enum ProcessingGuarantees {