Copilot commented on code in PR #62747:
URL: https://github.com/apache/doris/pull/62747#discussion_r3129432948
##########
fe/fe-core/src/main/java/org/apache/doris/job/extensions/insert/streaming/StreamingInsertJob.java:
##########
@@ -165,6 +168,10 @@ public class StreamingInsertJob extends
AbstractJob<StreamingJobSchedulerTask, M
@SerializedName("tprops")
private Map<String, String> targetProperties;
+ @Getter
+ @SerializedName("ccn")
+ private String cloudCluster;
Review Comment:
`cloudCluster` is read from worker threads (e.g. via
`JdbcSourceOffsetProvider.cloudClusterSupplier` and when constructing tasks)
and written during ALTER (`modifyPropertiesInternal`). As a plain non-volatile
field with no synchronization around reads/writes, updates may not be visible
across threads, causing the job to keep routing RPCs to the old compute_group
after ALTER/RESUME. Consider making `cloudCluster` `volatile` (or using an
`AtomicReference` / guarding access with the existing job lock) to ensure
proper memory visibility.
```suggestion
private volatile String cloudCluster;
```
--
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]