Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
package org.apache.iotdb.confignode.manager.pipe.agent.runtime;

import org.apache.iotdb.commons.exception.IllegalPathException;
import org.apache.iotdb.commons.exception.pipe.PipeRuntimeCriticalException;
import org.apache.iotdb.commons.exception.pipe.PipeRuntimeException;
import org.apache.iotdb.commons.pipe.agent.runtime.PipePeriodicalJobExecutor;
import org.apache.iotdb.commons.pipe.agent.runtime.PipePeriodicalPhantomReferenceCleaner;
Expand Down Expand Up @@ -156,18 +155,12 @@ private void report(

pipeTaskMeta.trackExceptionMessage(pipeRuntimeException);

// Stop all pipes locally if critical exception occurs
if (pipeRuntimeException instanceof PipeRuntimeCriticalException) {
PipeConfigNodeAgent.task().stopAllPipesWithCriticalException();
}
// Do not call "stopAllPipesWithCriticalException" because the sinks are not reused in
// ConfigNodeSubtask
}

/////////////////////////// Periodical Job Executor ///////////////////////////

public void registerPeriodicalJob(String id, Runnable periodicalJob, long intervalInSeconds) {
pipePeriodicalJobExecutor.register(id, periodicalJob, intervalInSeconds);
}

public void registerPhantomReferenceCleanJob(
String id, Runnable periodicalJob, long intervalInSeconds) {
pipePeriodicalPhantomReferenceCleaner.register(id, periodicalJob, intervalInSeconds);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,6 @@ protected void createPipeTask(
.put(consensusGroupId, pipeTaskMeta);
}

public void stopAllPipesWithCriticalException() {
super.stopAllPipesWithCriticalException(
ConfigNodeDescriptor.getInstance().getConf().getConfigNodeId());
}

@Override
protected TPushPipeMetaRespExceptionMessage handleSinglePipeMetaChangesInternal(
final PipeMeta pipeMetaFromCoordinator) {
Expand Down
Loading