github-actions[bot] commented on code in PR #62553:
URL: https://github.com/apache/doris/pull/62553#discussion_r3110206523


##########
fe/fe-core/src/main/java/org/apache/doris/job/extensions/insert/streaming/StreamingInsertJob.java:
##########
@@ -772,6 +789,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 `sourceProperties`, but it still leaves the 
transient `convertedSourceProperties` cache untouched. On any FE that has 
already initialized this job once (for example a former master that later 
replays this ALTER as a follower), `getProviderProps()` and 
`createStreamingMultiTblTask()` will keep returning the pre-ALTER converted map 
because the cache is still populated. If that FE is promoted again without 
restart, the job still uses the old credentials / `ssl_rootcert` rewrite even 
though the persisted `sourceProperties` map is new.
   
   Please clear or recompute `convertedSourceProperties` here when 
`sourceProperties` is replaced.



##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/AlterJobCommand.java:
##########
@@ -212,6 +212,31 @@ private void checkUnmodifiableSourceProperties(Map<String, 
String> originSourceP
                     sourceProperties.get(DataSourceConfigKeys.EXCLUDE_TABLES)),
                     "The exclude_tables property cannot be modified in ALTER 
JOB");
         }
+
+        // snapshot_parallelism sizes the BE poll executor on first 
initialize() and
+        // per-table exclude_columns / target_table are cached in 
DebeziumJsonDeserializer
+        // on first initialize(); BE reuses the cached reader per job id, so 
later ALTERs
+        // would silently keep the old values at runtime. Reject them at the 
FE layer.
+        if 
(sourceProperties.containsKey(DataSourceConfigKeys.SNAPSHOT_PARALLELISM)) {

Review Comment:
   This rejection list is still incomplete: `snapshot_split_size` has the same 
silent-no-op problem for existing `FROM ... TO DATABASE` jobs. The value is 
only consumed when FE initially builds the chunk list (`initSourceJob() -> 
splitChunks()` / `requestTableSplits()`), and every resume/restart path 
afterwards reuses the persisted splits from `streaming_job_meta` via 
`replayIfNeed()` instead of re-splitting. So `ALTER JOB ... FROM MYSQL 
("snapshot_split_size" = "2048")` only changes `SHOW JOBS` / persisted 
metadata; the running job keeps the original split layout.
   
   Please either reject this property here as well or rebuild the stored chunk 
meta on ALTER.



-- 
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]

Reply via email to