execution.go ×5

Frontier kind: Code frontier

unlabeled · c_c9af3f9edca7

84 tests · 5160 LOC · 174 files · introduces 0 tests · 24 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges24 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1009 ranges5160 lines · 174 files · Browse complete extent
All tests (intent)
84 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 24 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/persistence/sql/execution.go 24 introduced LOC · 5 ranges

Open complete file

447 ctx context.Context,
448 request *p.InternalConflictResolveWorkflowExecutionRequest,
449 > ) error { execution.go
450 > // first append history
451 > for _, req := range request.CurrentWorkflowEventsNewEvents {
452 if err := m.AppendHistoryNodes(ctx, req); err != nil {
453 return err
454 }
455 }
456 > for _, req := range request.ResetWorkflowEventsNewEvents { execution.go
457 if err := m.AppendHistoryNodes(ctx, req); err != nil {
458 return err
459 }
460 }
461 > for _, req := range request.NewWorkflowEventsNewEvents { execution.go
462 if err := m.AppendHistoryNodes(ctx, req); err != nil {
463 return err
465 }
466
467 > return m.txExecuteShardLocked(ctx, execution.go
468 > "ConflictResolveWorkflowExecution",
469 > request.ShardID,
470 > request.RangeID,
471 > func(tx sqlplugin.Tx) error {
472 > return m.conflictResolveWorkflowExecutionTx(ctx, tx, request)
473 > })
474 }
475
478 tx sqlplugin.Tx,
479 request *p.InternalConflictResolveWorkflowExecutionRequest,
480 > ) error { execution.go
481 >
482 > currentWorkflow := request.CurrentWorkflowMutation
483 > resetWorkflow := request.ResetWorkflowSnapshot
484 > newWorkflow := request.NewWorkflowSnapshot
485 >
486 > shardID := request.ShardID
487 >
488 > namespaceID := primitives.MustParseUUID(resetWorkflow.NamespaceID)
489 > workflowID := resetWorkflow.WorkflowID
490 >
491 > switch request.Mode {
492 case p.ConflictResolveWorkflowModeBypassCurrent:
493 if err := assertNotCurrentExecution(ctx,