You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by "fuweng11 (via GitHub)" <gi...@apache.org> on 2023/11/17 08:27:11 UTC

Re: [PR] [INLONG-9285][Manager] When creating KafkaSource, the autoOffsetReset param cannot be empty [inlong]

fuweng11 commented on code in PR #9287:
URL: https://github.com/apache/inlong/pull/9287#discussion_r1396813945


##########
inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/source/kafka/KafkaSource.java:
##########
@@ -67,7 +68,7 @@ public class KafkaSource extends StreamSource {
     private String timestampMillis;
 
     @ApiModelProperty(value = "The strategy of auto offset reset", notes = "including earliest, specific, latest (the default), none")
-    private String autoOffsetReset;
+    private KafkaOffset autoOffsetReset = KafkaOffset.LATEST;

Review Comment:
   Just set the default value of source to private `String autoOffsetReset=KafkaOffset.LATEST.getName()`;



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@inlong.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org