Skip to content

Commit

Permalink
Fix online optimize job and remove pipe default timeout
Browse files Browse the repository at this point in the history
Signed-off-by: wyb <[email protected]>
  • Loading branch information
wyb committed Nov 8, 2024
1 parent 4a723c5 commit b4a8a58
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ protected void executeSql(String sql) throws Exception {
SessionVariable sessionVariable = context.getSessionVariable();
sessionVariable.setUsePageCache(false);
sessionVariable.setEnableMaterializedViewRewrite(false);
sessionVariable.setQueryTimeoutS((int) timeoutMs / 2000);
sessionVariable.setInsertTimeoutS((int) timeoutMs / 2000);

context.setExecutor(executor);
context.setQueryId(UUIDUtil.genUUID());
Expand Down
7 changes: 0 additions & 7 deletions fe/fe-core/src/main/java/com/starrocks/load/pipe/Pipe.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import com.starrocks.load.pipe.filelist.FileListRepo;
import com.starrocks.persist.gson.GsonPostProcessable;
import com.starrocks.persist.gson.GsonUtils;
import com.starrocks.qe.SessionVariable;
import com.starrocks.scheduler.Constants;
import com.starrocks.scheduler.ExecuteOption;
import com.starrocks.scheduler.SubmitResult;
Expand Down Expand Up @@ -82,11 +81,6 @@ public class Pipe implements GsonPostProcessable {
public static final long DEFAULT_BATCH_FILES = 256;
public static final int FAILED_TASK_THRESHOLD = 5;

private static final ImmutableMap<String, String> DEFAULT_TASK_EXECUTION_VARIABLES =
ImmutableMap.<String, String>builder()
.put(SessionVariable.INSERT_TIMEOUT, "3600")
.build();

@SerializedName(value = "name")
private final String name;
@SerializedName(value = "id")
Expand Down Expand Up @@ -129,7 +123,6 @@ protected Pipe(PipeId id, String name, TableName targetTable, FilePipeSource sou
this.createdTime = TimeUtils.getEpochSeconds();
this.properties = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
this.taskExecutionVariables = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
this.taskExecutionVariables.putAll(DEFAULT_TASK_EXECUTION_VARIABLES);
}

public static Pipe fromStatement(long id, CreatePipeStmt stmt) {
Expand Down

0 comments on commit b4a8a58

Please sign in to comment.