Skip to content

Commit

Permalink
moved watermark table creation before QRep initialization (#745)
Browse files Browse the repository at this point in the history
  • Loading branch information
heavycrystal authored Dec 2, 2023
1 parent 27fe4dc commit ad769d4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions flow/workflows/qrep_flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,11 @@ func QRepFlowWorkflow(

q := NewQRepFlowExecution(ctx, config, runUUID)

err = q.SetupWatermarkTableOnDestination(ctx)
if err != nil {
return fmt.Errorf("failed to setup watermark table: %w", err)
}

err = q.SetupMetadataTables(ctx)
if err != nil {
return fmt.Errorf("failed to setup metadata tables: %w", err)
Expand All @@ -418,11 +423,6 @@ func QRepFlowWorkflow(
return err
}

err = q.SetupWatermarkTableOnDestination(ctx)
if err != nil {
return fmt.Errorf("failed to setup watermark table: %w", err)
}

logger.Info("fetching partitions to replicate for peer flow - ", config.FlowJobName)
partitions, err := q.GetPartitions(ctx, state.LastPartition)
if err != nil {
Expand Down

0 comments on commit ad769d4

Please sign in to comment.