transaction_manager_existing_workflow.go ×7

Frontier kind: Code frontier

unlabeled · c_262c125af01f

3 tests · 2823 LOC · 142 files · introduces 0 tests · 39 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges39 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
424 ranges2823 lines · 142 files · Browse complete extent
All tests (intent)
3 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: 39 introduced LOC across 7 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/ndc/transaction_manager_existing_workflow.go 39 introduced LOC · 7 ranges

Open complete file

222 }
223
224 > return r.executeTransaction( transaction_manager_existing_workflow.go
225 > ctx,
226 > nDCTransactionPolicyConflictResolveAsZombie,
227 > currentWorkflow,
228 > targetWorkflow,
229 > newWorkflow,
230 > archetypeID,
231 > )
232 }
233
430 newWorkflow Workflow,
431 archetypeID chasm.ArchetypeID,
433 >
434 > targetWorkflowPolicy, err := suppressTargetPolicy(targetWorkflow, currentWorkflow)
435 > if err != nil {
436 return err
437 }
438 > if !r.bypassVersionSemanticsCheck && targetWorkflowPolicy != historyi.TransactionPolicyPassive { transaction_manager_existing_workflow.go
439 return serviceerror.NewInternal("transactionMgrForExistingWorkflow conflictResolveAsZombie encountered target workflow policy not being passive")
440 }
441
442 > var newWorkflowPolicy historyi.TransactionPolicy transaction_manager_existing_workflow.go
443 > var newContext historyi.WorkflowContext
444 > var newMutableState historyi.MutableState
445 > if newWorkflow != nil {
446 // newWorkflow is only set when a current workflow exists (dispatchForExistingWorkflow skips
447 // the new run when the current record is missing), so suppressing against it is safe.
481 }
482
483 > if currentWorkflow != nil { transaction_manager_existing_workflow.go
484 // release lock on current workflow, since current cluster maybe the active cluster
485 // and events maybe reapplied to current workflow
488 }
489
490 > return targetWorkflow.GetContext().ConflictResolveWorkflowExecution( transaction_manager_existing_workflow.go
491 > ctx,
492 > r.shardContext,
493 > persistence.ConflictResolveWorkflowModeBypassCurrent,
494 > targetWorkflow.GetMutableState(),
495 > newContext,
496 > newMutableState,
497 > nil,
498 > nil,
499 > targetWorkflowPolicy,
500 > newWorkflowPolicy.Ptr(),
501 > nil,
502 > )
503 }
504
553 )
554
555 > case nDCTransactionPolicyConflictResolveAsZombie: transaction_manager_existing_workflow.go
556 > return r.conflictResolveAsZombie(
557 > ctx,
558 > currentWorkflow,
559 > targetWorkflow,
560 > newWorkflow,
561 > archetypeID,
562 > )
563
564 default: