idlehandler

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PublishIdleWatermark

func PublishIdleWatermark(ctx context.Context, fromBufferPartitionIndex int32, toBufferPartition isb.BufferWriter, wmPublisher publish.Publisher, idleManager wmb.IdleManager, logger *zap.SugaredLogger, vertexName string, pipelineName string, vertexType dfv1.VertexType, vertexReplica int32, wm wmb.Watermark)

PublishIdleWatermark publishes a ctrl message with isb.Kind set to WMB. We only send one ctrl message when

Types

type SourceIdleHandler added in v1.1.0

type SourceIdleHandler struct {
	// contains filtered or unexported fields
}

SourceIdleHandler handles operations related to idle watermarks for source.

func NewSourceIdleHandler added in v1.1.0

func NewSourceIdleHandler(config *dfv1.Watermark, fetcher fetch.SourceFetcher, publisher publish.SourcePublisher) *SourceIdleHandler

NewSourceIdleHandler creates a new instance of SrcIdleHandler.

func (*SourceIdleHandler) IsSourceIdling added in v1.1.0

func (iw *SourceIdleHandler) IsSourceIdling() bool

IsSourceIdling will return true if source has been idling and the step interval has passed.

func (*SourceIdleHandler) PublishSourceIdleWatermark added in v1.1.0

func (iw *SourceIdleHandler) PublishSourceIdleWatermark(partitions []int32)

PublishSourceIdleWatermark publishes an idle watermark.

func (*SourceIdleHandler) Reset added in v1.1.0

func (iw *SourceIdleHandler) Reset()

Reset resets the updatedTS to the current time.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL