github-actions[bot] commented on code in PR #62490:
URL: https://github.com/apache/doris/pull/62490#discussion_r3083643689
##########
fe/fe-core/src/main/java/org/apache/doris/job/offset/jdbc/JdbcOffset.java:
##########
@@ -48,7 +48,10 @@ public class JdbcOffset implements Offset {
@Override
public String toSerializedJson() {
- return null;
+ if (splits == null || splits.isEmpty()) {
+ return null;
+ }
+ return new Gson().toJson(splits);
}
Review Comment:
still parses a flattened payload like , but this now serializes the split
object with Gson, which produces a nested object for binlog offsets. That
means is no longer the inverse of . In cloud mode persists this string
immediately after , so replaying/restoring the altered offset will fail to
round-trip the CDC position correctly unless all deserialize/replay consumers
are updated too.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]