Skip to content

Commit 063744c

Browse files
authored
Merge pull request #7752 from datafuselabs/revert-7486-log2
refactor(executor): reverts #7486
2 parents d7a43c9 + 01a094a commit 063744c

File tree

4 files changed

+2
-30
lines changed

4 files changed

+2
-30
lines changed

src/query/pipeline/core/src/processors/processor.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ use futures::FutureExt;
2323
use petgraph::graph::node_index;
2424
use petgraph::prelude::NodeIndex;
2525

26-
#[derive(Debug)]
2726
pub enum Event {
2827
NeedData,
2928
NeedConsume,

src/query/service/src/pipelines/executor/executor_graph.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -242,15 +242,7 @@ impl ExecutingGraph {
242242
state_guard_cache = Some(node.state.lock().unwrap());
243243
}
244244

245-
let event = node.processor.event()?;
246-
tracing::debug!(
247-
"node id:{:?}, name:{:?}, event: {:?}",
248-
node.processor.id(),
249-
node.processor.name(),
250-
event
251-
);
252-
253-
let processor_state = match event {
245+
let processor_state = match node.processor.event()? {
254246
Event::Finished => State::Finished,
255247
Event::NeedData | Event::NeedConsume => State::Idle,
256248
Event::Sync => {

src/query/service/src/pipelines/executor/executor_worker_context.rs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use std::fmt::Debug;
1616
use std::fmt::Formatter;
1717
use std::sync::Arc;
18-
use std::time::Instant;
1918

2019
use common_base::base::TrySpawn;
2120
use common_exception::ErrorCode;
@@ -80,19 +79,7 @@ impl ExecutorWorkerContext {
8079
}
8180

8281
unsafe fn execute_sync_task(&mut self, processor: ProcessorPtr) -> Result<Option<NodeIndex>> {
83-
if tracing::enabled!(tracing::Level::DEBUG) {
84-
let start = Instant::now();
85-
processor.process()?;
86-
tracing::debug!(
87-
"sync processor, node id:{:?}, name:{:?}, event: {:?}",
88-
processor.id(),
89-
processor.name(),
90-
start.elapsed()
91-
);
92-
} else {
93-
processor.process()?;
94-
}
95-
82+
processor.process()?;
9683
Ok(Some(processor.id()))
9784
}
9885

src/query/service/src/pipelines/executor/processor_async_task.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,6 @@ impl ProcessorAsyncTask {
8080
);
8181
}
8282
Either::Right((res, _)) => {
83-
tracing::debug!(
84-
"async processor, node id {:?} name: {:?}, elapsed:{:?}",
85-
wraning_processor.id(),
86-
wraning_processor.name(),
87-
start.elapsed()
88-
);
8983
return res;
9084
}
9185
}

0 commit comments

Comments
 (0)