Class ResumeFromPreviousPipelineAction


  • public class ResumeFromPreviousPipelineAction
    extends java.lang.Object
    • Method Detail

      • run

        public void run​(org.apache.beam.sdk.transforms.DoFn.OutputReceiver<PartitionRecord> receiver)
                 throws com.google.protobuf.InvalidProtocolBufferException
        Resume from previously drained pipeline. Restart StreamPartitions by reading the last metadata write and output PartitionRecord based on that. Process NewPartitions normally.
        1. Clear out missing partitions metadata in the metadata table
        2. Read all StreamPartitions and output them
        3. Read all NewPartitions and output them normally
        Parameters:
        receiver - output receiver to output
        Throws:
        com.google.protobuf.InvalidProtocolBufferException - when failing to read from metadata table.