liaoxin01 commented on code in PR #70910:
URL: https://github.com/apache/doris/pull/70910#discussion_r4716773944


##########
be/src/service/http/action/stream_load.cpp:
##########
@@ -458,6 +461,31 @@ void 
StreamLoadAction::free_handler_ctx(std::shared_ptr<void> param) {
     streaming_load_current_processing->increment(-1);
 }
 
+#ifndef BE_TEST

Review Comment:
   `#ifndef BE_TEST` is not needed.



##########
be/src/service/http/action/stream_load.cpp:
##########
@@ -458,6 +461,31 @@ void 
StreamLoadAction::free_handler_ctx(std::shared_ptr<void> param) {
     streaming_load_current_processing->increment(-1);
 }
 
+#ifndef BE_TEST
+static TNetworkAddress select_group_commit_planner(ExecEnv* env, const 
TNetworkAddress& master) {
+    std::string mode;
+    {
+        std::scoped_lock lock(*config::get_mutable_string_config_lock());

Review Comment:
   It's better to using config callback, not using a lock.



##########
fe/fe-core/src/main/java/org/apache/doris/alter/SchemaChangeJobV2.java:
##########
@@ -873,10 +873,10 @@ protected synchronized boolean cancelImpl(String errMsg) {
 
         this.errMsg = errMsg;
         this.finishedTimeMs = System.currentTimeMillis();
-        changeTableState(dbId, tableId, OlapTableState.NORMAL);
-        LOG.info("set table's state to NORMAL when cancel, table id: {}, job 
id: {}", tableId, jobId);
         setJobState(JobState.CANCELLED);
         Env.getCurrentEnv().getEditLog().logAlterJob(this);
+        changeTableState(dbId, tableId, OlapTableState.NORMAL);

Review Comment:
   Why change the order?



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