Copilot commented on code in PR #62403:
URL: https://github.com/apache/doris/pull/62403#discussion_r3068209481


##########
be/src/agent/task_worker_pool.cpp:
##########
@@ -1386,6 +1388,7 @@ void download_callback(CloudStorageEngine& engine, 
ExecEnv* env, const TAgentTas
         std::unique_ptr<CloudSnapshotLoader> loader = 
std::make_unique<CloudSnapshotLoader>(
                 engine, env, download_request.job_id, req.signature, 
download_request.broker_addr,
                 download_request.broker_prop);
+        SCOPED_ATTACH_TASK(loader->resource_ctx());

Review Comment:
   In CloudStorageEngine::download_callback(), when `remote_tablet_snapshots` 
is set you set `status` to NOT_IMPLEMENTED but then skip `finish_task()` and 
`remove_task_info()` because they are inside the `else` block. This can leave 
the task unreported/uncleaned (potentially hanging FE-side task tracking). 
Consider sending a finish_task with the error status (and removing task info) 
in the unsupported branch, or moving the finish_task/remove_task_info logic 
after the if/else so it always runs.



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