Skip to content

Commit

Permalink
[refactor](executor)remove scan group apache#28847
Browse files Browse the repository at this point in the history
  • Loading branch information
wangbo authored and HappenLee committed Jan 12, 2024
1 parent ec6b544 commit 904beab
Show file tree
Hide file tree
Showing 10 changed files with 1 addition and 396 deletions.
2 changes: 0 additions & 2 deletions be/src/common/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -970,8 +970,6 @@ DEFINE_Bool(enable_fuzzy_mode, "false");
DEFINE_Bool(enable_debug_points, "false");

DEFINE_Int32(pipeline_executor_size, "0");
DEFINE_Bool(enable_workload_group_for_scan, "false");
DEFINE_mInt64(workload_group_scan_task_wait_timeout_ms, "10000");
// 128 MB
DEFINE_mInt64(local_exchange_buffer_mem_limit, "134217728");

Expand Down
2 changes: 0 additions & 2 deletions be/src/common/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -1024,8 +1024,6 @@ DECLARE_Bool(enable_fuzzy_mode);
DECLARE_Bool(enable_debug_points);

DECLARE_Int32(pipeline_executor_size);
DECLARE_Bool(enable_workload_group_for_scan);
DECLARE_mInt64(workload_group_scan_task_wait_timeout_ms);

// Temp config. True to use optimization for bitmap_index apply predicate except leaf node of the and node.
// Will remove after fully test.
Expand Down
5 changes: 0 additions & 5 deletions be/src/runtime/task_group/task_group.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#include "runtime/memory/mem_tracker_limiter.h"
#include "util/mem_info.h"
#include "util/parse_util.h"
#include "vec/exec/scan/scan_task_queue.h"
#include "vec/exec/scan/scanner_scheduler.h"

namespace doris {
Expand Down Expand Up @@ -102,7 +101,6 @@ std::string TaskGroupEntity<QueueType>::debug_string() const {
}

template class TaskGroupEntity<std::queue<pipeline::PipelineTask*>>;
template class TaskGroupEntity<ScanTaskQueue>;

TaskGroup::TaskGroup(const TaskGroupInfo& tg_info)
: _id(tg_info.id),
Expand All @@ -112,7 +110,6 @@ TaskGroup::TaskGroup(const TaskGroupInfo& tg_info)
_enable_memory_overcommit(tg_info.enable_memory_overcommit),
_cpu_share(tg_info.cpu_share),
_task_entity(this, "pipeline task entity"),
_local_scan_entity(this, "local scan entity"),
_mem_tracker_limiter_pool(MEM_TRACKER_GROUP_NUM),
_cpu_hard_limit(tg_info.cpu_hard_limit) {}

Expand Down Expand Up @@ -150,8 +147,6 @@ void TaskGroup::check_and_update(const TaskGroupInfo& tg_info) {
}
ExecEnv::GetInstance()->pipeline_task_group_scheduler()->task_queue()->update_tg_cpu_share(
tg_info, &_task_entity);
ExecEnv::GetInstance()->scanner_scheduler()->local_scan_task_queue()->update_tg_cpu_share(
tg_info, &_local_scan_entity);
}

int64_t TaskGroup::memory_used() {
Expand Down
6 changes: 0 additions & 6 deletions be/src/runtime/task_group/task_group.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ namespace taskgroup {

class TaskGroup;
struct TaskGroupInfo;
class ScanTaskQueue;

template <typename QueueType>
class TaskGroupEntity {
Expand Down Expand Up @@ -88,9 +87,6 @@ class TaskGroupEntity {
using TaskGroupPipelineTaskEntity = TaskGroupEntity<std::queue<pipeline::PipelineTask*>>;
using TGPTEntityPtr = TaskGroupPipelineTaskEntity*;

using TaskGroupScanTaskEntity = TaskGroupEntity<ScanTaskQueue>;
using TGSTEntityPtr = TaskGroupScanTaskEntity*;

struct TgTrackerLimiterGroup {
std::unordered_set<std::shared_ptr<MemTrackerLimiter>> trackers;
std::mutex group_lock;
Expand All @@ -101,7 +97,6 @@ class TaskGroup : public std::enable_shared_from_this<TaskGroup> {
explicit TaskGroup(const TaskGroupInfo& tg_info);

TaskGroupPipelineTaskEntity* task_entity() { return &_task_entity; }
TGSTEntityPtr local_scan_task_entity() { return &_local_scan_entity; }

int64_t version() const { return _version; }

Expand Down Expand Up @@ -155,7 +150,6 @@ class TaskGroup : public std::enable_shared_from_this<TaskGroup> {
bool _enable_memory_overcommit;
std::atomic<uint64_t> _cpu_share;
TaskGroupPipelineTaskEntity _task_entity;
TaskGroupScanTaskEntity _local_scan_entity;
std::vector<TgTrackerLimiterGroup> _mem_tracker_limiter_pool;
std::atomic<int> _cpu_hard_limit;
};
Expand Down
221 changes: 0 additions & 221 deletions be/src/vec/exec/scan/scan_task_queue.cpp

This file was deleted.

Loading

0 comments on commit 904beab

Please sign in to comment.