This is an automated email from the ASF dual-hosted git repository. caogaofei pushed a commit to branch for_tsbs in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit dd88c623676403baa718f2d3d304020b95367d4b Author: Beyyes <[email protected]> AuthorDate: Tue Apr 18 19:05:04 2023 +0800 remove cputimer setter in DriverTaskThread.java --- .../org/apache/iotdb/db/mpp/execution/schedule/DriverTaskThread.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/org/apache/iotdb/db/mpp/execution/schedule/DriverTaskThread.java b/server/src/main/java/org/apache/iotdb/db/mpp/execution/schedule/DriverTaskThread.java index 33028af21b..bbb1505520 100644 --- a/server/src/main/java/org/apache/iotdb/db/mpp/execution/schedule/DriverTaskThread.java +++ b/server/src/main/java/org/apache/iotdb/db/mpp/execution/schedule/DriverTaskThread.java @@ -67,7 +67,7 @@ public class DriverTaskThread extends AbstractDriverThread { IDriver driver = task.getDriver(); CpuTimer timer = new CpuTimer(); ListenableFuture<?> future = driver.processFor(EXECUTION_TIME_SLICE); - CpuTimer.CpuDuration duration = timer.elapsedTime(); + // CpuTimer.CpuDuration duration = timer.elapsedTime(); // If the future is cancelled, the task is in an error and should be thrown. if (future.isCancelled()) { task.setAbortCause(DriverTaskAbortedException.BY_ALREADY_BEING_CANCELLED); @@ -76,7 +76,7 @@ public class DriverTaskThread extends AbstractDriverThread { } long quantaScheduledNanos = ticker.read() - startNanos; ExecutionContext context = new ExecutionContext(); - context.setCpuDuration(duration); + // context.setCpuDuration(duration); context.setScheduledTimeInNanos(quantaScheduledNanos); context.setTimeSlice(EXECUTION_TIME_SLICE); if (driver.isFinished()) {
