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


##########
gensrc/thrift/Status.thrift:
##########
@@ -115,6 +115,7 @@ enum TStatusCode {
 
     // used for cloud
     DELETE_BITMAP_LOCK_ERROR = 100,
+    SC_COMPACTION_CONFLICT = 101,

Review Comment:
   Adding a new `TStatusCode` here breaks rolling FE/BE compatibility unless we 
add an explicit fallback path. `CloudSchemaChangeJob` now reports 
`SC_COMPACTION_CONFLICT` through `TFinishTaskRequest.task_status`, but an older 
FE's thrift-generated `TStatus` will deserialize unknown enum values as `null`. 
`MasterImpl.finishTaskInternal()` assumes this field is non-null and calls 
`taskStatus.getStatusCode().toString()` when building `errMsg` 
(`fe/fe-core/src/main/java/org/apache/doris/master/MasterImpl.java:165`), so 
upgrading BE first can fail ALTER-task reporting instead of retrying it. 
AGENTS.md requires compatibility handling for incompatible FE/BE protocol 
changes during rolling upgrade, so this new wire code needs a 
backward-compatible fallback (for example, reuse an existing retryable code on 
the wire, or make FE tolerate/translate unknown enum values before BE starts 
sending them).



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