-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement] Support insert timeout #50644
base: main
Are you sure you want to change the base?
Changes from all commits
1e16083
cb6557e
844e147
4a723c5
14a14f2
ec818b8
380c400
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -191,6 +191,7 @@ public class SessionVariable implements Serializable, Writable, Cloneable { | |
public static final String MAX_PARALLEL_SCAN_INSTANCE_NUM = "max_parallel_scan_instance_num"; | ||
public static final String ENABLE_INSERT_STRICT = "enable_insert_strict"; | ||
public static final String INSERT_MAX_FILTER_RATIO = "insert_max_filter_ratio"; | ||
public static final String INSERT_TIMEOUT = "insert_timeout"; | ||
public static final String DYNAMIC_OVERWRITE = "dynamic_overwrite"; | ||
public static final String ENABLE_SPILL = "enable_spill"; | ||
public static final String ENABLE_SPILL_TO_REMOTE_STORAGE = "enable_spill_to_remote_storage"; | ||
|
@@ -1163,6 +1164,9 @@ public static MaterializedViewRewriteMode parse(String str) { | |
@VariableMgr.VarAttr(name = INSERT_MAX_FILTER_RATIO) | ||
private double insertMaxFilterRatio = 0; | ||
|
||
@VariableMgr.VarAttr(name = INSERT_TIMEOUT) | ||
private int insertTimeoutS = 14400; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's weird if this value is different from default pipe/mv task timeout. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the value is same as broker load default job timeout There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. update pipe/mv default timeout same as insert timeout |
||
|
||
@VariableMgr.VarAttr(name = ENABLE_SPILL) | ||
private boolean enableSpill = false; | ||
|
||
|
@@ -2851,6 +2855,14 @@ public void setInsertMaxFilterRatio(double insertMaxFilterRatio) { | |
this.insertMaxFilterRatio = insertMaxFilterRatio; | ||
} | ||
|
||
public int getInsertTimeoutS() { | ||
return insertTimeoutS; | ||
} | ||
|
||
public void setInsertTimeoutS(int insertTimeoutS) { | ||
this.insertTimeoutS = insertTimeoutS; | ||
} | ||
|
||
public boolean isEnableSpill() { | ||
return enableSpill; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the user has set query_timeout, how to maintain compatibility when the user upgrades?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add
insert_timeout
session variable is to make it easier for users to change.