Guruguha Marur Sreenivasa
03/30/2023, 9:18 PMCheckpointListener
to listen to completed checkpoints? I'm unable to register this with my stream environment. Can someone please help here?
Below is my listener code:
public class CheckpointCoordinator implements CheckpointListener {
@Override
public void notifyCheckpointComplete(long checkpointId) throws Exception {
<http://log.info|log.info>("Checkpoint {} completed successfully.", checkpointId);
// add custom logic here
}
@Override
public void notifyCheckpointAborted(long checkpointId) throws Exception {
CheckpointListener.super.notifyCheckpointAborted(checkpointId);
}
}
How do I register this?sap1ens
03/30/2023, 9:37 PMRichSinkFunction
.Guruguha Marur Sreenivasa
03/30/2023, 9:37 PMERROR!!! Coordinator Provider for node Source: .... is not serializable.
Guruguha Marur Sreenivasa
03/30/2023, 9:40 PMKeyedProcessFunction
public class MultiModeProcessFilter extends KeyedProcessFunction<String, VLFRecord, FilteredRecord> implements CheckpointListener {
...
@Override
public void notifyCheckpointComplete(long checkpointId) throws Exception {
<http://log.info|log.info>("**checkpoint completed ** {}", checkpointId);
// custom logic handler
}
...
}
sap1ens
03/30/2023, 9:47 PMGuruguha Marur Sreenivasa
03/30/2023, 9:59 PM