Skip to content

Commit

Permalink
[FLINK-29207][pulsar][BP-1.16] Fix Pulsar message eventTime may be in…
Browse files Browse the repository at this point in the history
…correctly set to a negative number (#20798)
  • Loading branch information
wenbingshen committed Sep 9, 2022
1 parent 1c65409 commit 7750058
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ private TypedMessageBuilder<?> createMessageBuilder(
} else {
// Set default message timestamp if flink has provided one.
Long timestamp = context.timestamp();
if (timestamp != null) {
if (timestamp != null && timestamp > 0L) {
builder.eventTime(timestamp);
}
}
Expand Down

0 comments on commit 7750058

Please sign in to comment.