congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ExecutionConfig.setFailTaskOnCheckpointError
Code IndexAdd Tabnine to your IDE (free)

How to use
setFailTaskOnCheckpointError
method
in
org.apache.flink.api.common.ExecutionConfig

Best Java code snippets using org.apache.flink.api.common.ExecutionConfig.setFailTaskOnCheckpointError (Showing top 5 results out of 315)

origin: apache/flink

  ExecutionConfig executionConfig = streamGraph.getExecutionConfig();
  executionConfig.setFailTaskOnCheckpointError(cfg.isFailOnCheckpointingErrors());
} else {
origin: apache/flink

private void testConfigForwarding(boolean failOnException) throws Exception {
  final boolean expectedHandlerFlag = failOnException;
  final DummyEnvironment environment = new DummyEnvironment("test", 1, 0);
  environment.setTaskStateManager(new TestTaskStateManager());
  environment.getExecutionConfig().setFailTaskOnCheckpointError(expectedHandlerFlag);
  final CheckpointExceptionHandlerFactory inspectingFactory = new CheckpointExceptionHandlerFactory() {
    @Override
    public CheckpointExceptionHandler createCheckpointExceptionHandler(
      boolean failTaskOnCheckpointException,
      Environment environment) {
      Assert.assertEquals(expectedHandlerFlag, failTaskOnCheckpointException);
      return super.createCheckpointExceptionHandler(failTaskOnCheckpointException, environment);
    }
  };
  StreamTask streamTask = new StreamTask(environment, null) {
    @Override
    protected void init() throws Exception {}
    @Override
    protected void run() throws Exception {}
    @Override
    protected void cleanup() throws Exception {}
    @Override
    protected void cancelTask() throws Exception {}
    @Override
    protected CheckpointExceptionHandlerFactory createCheckpointExceptionHandlerFactory() {
      return inspectingFactory;
    }
  };
  streamTask.invoke();
}
origin: apache/flink

executionConfig.setFailTaskOnCheckpointError(failOnCheckpointErrors);
origin: org.apache.flink/flink-streaming-java_2.11

  ExecutionConfig executionConfig = streamGraph.getExecutionConfig();
  executionConfig.setFailTaskOnCheckpointError(cfg.isFailOnCheckpointingErrors());
} else {
origin: org.apache.flink/flink-streaming-java

  ExecutionConfig executionConfig = streamGraph.getExecutionConfig();
  executionConfig.setFailTaskOnCheckpointError(cfg.isFailOnCheckpointingErrors());
} else {
org.apache.flink.api.commonExecutionConfigsetFailTaskOnCheckpointError

Javadoc

This method is visible because of the way the configuration is currently forwarded from the checkpoint config to the task. This should not be called by the user, please use CheckpointConfig.setFailOnCheckpointingErrors(...) instead.

Popular methods of ExecutionConfig

  • <init>
  • isObjectReuseEnabled
    Returns whether object reuse has been enabled or disabled. @see #enableObjectReuse()
  • disableSysoutLogging
    Disables the printing of progress update messages to System.out
  • getAutoWatermarkInterval
    Returns the interval of the automatic watermark emission.
  • setGlobalJobParameters
    Register a custom, serializable user configuration object.
  • enableObjectReuse
    Enables reusing objects that Flink internally uses for deserialization and passing data to user-code
  • setAutoWatermarkInterval
    Sets the interval of the automatic watermark emission. Watermarks are used throughout the streaming
  • disableObjectReuse
    Disables reusing objects that Flink internally uses for deserialization and passing data to user-cod
  • getRestartStrategy
    Returns the restart strategy which has been set for the current job.
  • isSysoutLoggingEnabled
    Gets whether progress update messages should be printed to System.out
  • registerKryoType
    Registers the given type with the serialization stack. If the type is eventually serialized as a POJ
  • registerTypeWithKryoSerializer
    Registers the given Serializer via its class as a serializer for the given type at the KryoSerialize
  • registerKryoType,
  • registerTypeWithKryoSerializer,
  • setRestartStrategy,
  • getParallelism,
  • addDefaultKryoSerializer,
  • getGlobalJobParameters,
  • getNumberOfExecutionRetries,
  • getRegisteredKryoTypes,
  • setParallelism,
  • getDefaultKryoSerializerClasses

Popular in Java

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • startActivity (Activity)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • JTable (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now