Skip to content

Commit

Permalink
[ISSUE #101] Fix bug, the optional param 'startup.offset.timestamp' i…
Browse files Browse the repository at this point in the history
…s not set, a NPE will be thrown. (#102)
  • Loading branch information
leosanqing authored Nov 15, 2023
1 parent b9efd1e commit 48e88d7
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 48e88d7

Please sign in to comment.