github-actions[bot] commented on code in PR #62553:
URL: https://github.com/apache/doris/pull/62553#discussion_r3108064395
##########
fe/fe-core/src/main/java/org/apache/doris/job/extensions/insert/streaming/StreamingInsertJob.java:
##########
@@ -772,6 +772,12 @@ public void replayOnUpdated(StreamingInsertJob replayJob) {
if (replayJob.getNonTxnJobStatistic() != null) {
setNonTxnJobStatistic(replayJob.getNonTxnJobStatistic());
}
+ if (replayJob.getSourceProperties() != null) {
+ this.sourceProperties = replayJob.getSourceProperties();
Review Comment:
`replayOnUpdated()` now replaces `this.sourceProperties`, but the
already-instantiated `JdbcSourceOffsetProvider` still keeps its old cached
`sourceProperties` and `snapshotParallelism`. `JobManager.replayUpdateJob()`
replays onto the existing `StreamingInsertJob`, so after follower promotion the
source RPCs in `JdbcSourceOffsetProvider` (`fetchRemoteMeta`, `compareOffset`,
`requestTableSplits`, `initSourceReader`, etc.) still run with the pre-ALTER
JDBC config. That means changing credentials or `snapshot_parallelism` is still
lost on the actual CDC path even though `SHOW JOBS` now shows the new map.
Please refresh/recreate the provider here as well, similar to how
`JdbcTvfSourceOffsetProvider.ensureInitialized()` rehydrates ALTER-able source
fields.
--
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]