downgrade single ls submit replay log task interval to 100ms
This commit is contained in:
@ -192,8 +192,8 @@ private:
|
||||
// 析构前调用,归还所有日志流的replay status计数
|
||||
int remove_all_ls_();
|
||||
private:
|
||||
const int64_t MAX_REPLAY_TIME_PER_ROUND = 100 * 1000; //100ms
|
||||
const int64_t MAX_SUBMIT_TIME_PER_ROUND = 1000 * 1000; //1s
|
||||
const int64_t MAX_REPLAY_TIME_PER_ROUND = 10 * 1000; //10ms
|
||||
const int64_t MAX_SUBMIT_TIME_PER_ROUND = 100 * 1000; //100ms
|
||||
const int64_t TASK_QUEUE_WAIT_IN_GLOBAL_QUEUE_TIME_THRESHOLD = 5 * 1000 * 1000; //5s
|
||||
const int64_t PENDING_TASK_MEMORY_LIMIT = 128 * (1LL << 20); //128MB
|
||||
|
||||
|
@ -154,6 +154,8 @@ public:
|
||||
K(replay_hint_),
|
||||
K(is_raw_write_),
|
||||
K(first_handle_ts_),
|
||||
K(replay_cost_),
|
||||
K(retry_cost_),
|
||||
KP(log_buf_));
|
||||
};
|
||||
|
||||
|
@ -40,9 +40,9 @@ int ObExprToOutfileRow::calc_result_typeN(ObExprResType &type,
|
||||
ObExprResType *types,
|
||||
int64_t param_num,
|
||||
ObExprTypeCtx &type_ctx) const
|
||||
{
|
||||
//objs[0] field_str varchar
|
||||
//objs[1] line_str varchar
|
||||
{
|
||||
//objs[0] field_str varchar
|
||||
//objs[1] line_str varchar
|
||||
//objs[2] closed_cht char
|
||||
//objs[3] is_optional bool
|
||||
//objs[4] escaped_cht char
|
||||
@ -93,9 +93,9 @@ int ObExprToOutfileRow::cg_expr(ObExprCGCtx &, const ObRawExpr &, ObExpr &expr)
|
||||
|
||||
int ObExprToOutfileRow::extend_buffer(ObExprOutFileInfo &out_info,
|
||||
ObIAllocator &allocator)
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
int64_t old_len = out_info.buf_len_;
|
||||
{
|
||||
int ret = OB_SUCCESS;
|
||||
int64_t old_len = out_info.buf_len_;
|
||||
int64_t new_len = (old_len == 0) ? OB_MALLOC_MIDDLE_BLOCK_SIZE : old_len * 2;
|
||||
if (OB_ISNULL(out_info.buf_ = static_cast<char*>(allocator.alloc(new_len)))) {
|
||||
ret = OB_ALLOCATE_MEMORY_FAILED;
|
||||
@ -157,9 +157,9 @@ int ObExprToOutfileRow::to_outfile_str(const ObExpr &expr, ObEvalCtx &ctx, ObDat
|
||||
ret = OB_INVALID_ARGUMENT;
|
||||
LOG_WARN("Invalid argument", K(ret));
|
||||
} else if (OB_FAIL(expr.eval_param_value(ctx))) {
|
||||
LOG_WARN("evaluate parameters values failed", K(ret));
|
||||
} else {
|
||||
ObExprOutFileInfo *out_info = NULL;
|
||||
LOG_WARN("evaluate parameters values failed", K(ret));
|
||||
} else {
|
||||
ObExprOutFileInfo *out_info = NULL;
|
||||
auto rt_ctx_id = static_cast<uint64_t>(expr.expr_ctx_id_);
|
||||
if (NULL == (out_info = static_cast<ObExprOutFileInfo *>
|
||||
(ctx.exec_ctx_.get_expr_op_ctx(rt_ctx_id)))) {
|
||||
|
Reference in New Issue
Block a user