Skip to content

Commit

Permalink
[ISSUE apache#101] Fix bug, the optional param 'startup.offset.timest…
Browse files Browse the repository at this point in the history
…amp' is not set, a NPE will be thrown. (apache#102)
  • Loading branch information
leosanqing authored and tao.chen committed Mar 28, 2024
1 parent 38560d7 commit f48eacf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public class RocketMQSourceOptions extends RocketMQOptions {
public static final ConfigOption<Long> OPTIONAL_STARTUP_OFFSET_TIMESTAMP =
ConfigOptions.key(CONSUMER_PREFIX + "startup.offset.timestamp")
.longType()
.noDefaultValue();
.defaultValue(RocketMQConfig.DEFAULT_START_MESSAGE_OFFSET);

public static final ConfigOption<String> OPTIONAL_STOP_OFFSET_TIMESTAMP =
ConfigOptions.key(CONSUMER_PREFIX + "stop.offset.timestamp")
Expand Down

0 comments on commit f48eacf

Please sign in to comment.