transaction_manager_existing_workflow.go ×5

Frontier kind: Joint frontier

unlabeled · c_4c5a12a87ba0

1 test · 2833 LOC · 142 files · introduces 1 test · 48 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges48 lines · 1 files
Tests
1 test

Contains — complete concept membership

All code (extent)
423 ranges2833 lines · 142 files · Browse complete extent
All tests (intent)
1 testBrowse 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.

1 test introduced at this concept.

Introduced code

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

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

go.temporal.io/server/service/history/ndc/transaction_manager_existing_workflow.go 48 introduced LOC · 5 ranges

Open complete file

122
123 if currentRunID == targetRunID {
124 > // update to current record, since target workflow is pointed by current record transaction_manager_existing_workflow.go
125 > return r.dispatchWorkflowUpdateAsCurrent(
126 > ctx,
127 > isWorkflowRebuilt,
128 > targetWorkflow,
129 > newWorkflow,
130 > archetypeID,
131 > )
132 > }
133
134 // there exists a current workflow, need additional check
192 }
193
194 > return r.executeTransaction( transaction_manager_existing_workflow.go
195 > ctx,
196 > nDCTransactionPolicyConflictResolveAsCurrent,
197 > nil,
198 > targetWorkflow,
199 > newWorkflow,
200 > archetypeID,
201 > )
202 }
203
396 targetWorkflow Workflow,
397 newWorkflow Workflow,
399 >
400 > targetWorkflowPolicy := historyi.TransactionPolicyPassive
401 >
402 > var newWorkflowPolicy *historyi.TransactionPolicy
403 > var newContext historyi.WorkflowContext
404 > var newMutableState historyi.MutableState
405 > if newWorkflow != nil {
406 > newContext = newWorkflow.GetContext()
407 > newMutableState = newWorkflow.GetMutableState()
408 > newWorkflowPolicy = historyi.TransactionPolicyPassive.Ptr()
409 > }
410
411 > return targetWorkflow.GetContext().ConflictResolveWorkflowExecution( transaction_manager_existing_workflow.go
412 > ctx,
413 > r.shardContext,
414 > persistence.ConflictResolveWorkflowModeUpdateCurrent,
415 > targetWorkflow.GetMutableState(),
416 > newContext,
417 > newMutableState,
418 > nil,
419 > nil,
420 > targetWorkflowPolicy,
421 > newWorkflowPolicy,
422 > nil,
423 > )
424 }
425
546 )
547
548 > case nDCTransactionPolicyConflictResolveAsCurrent: transaction_manager_existing_workflow.go
549 > return r.conflictResolveAsCurrent(
550 > ctx,
551 > targetWorkflow,
552 > newWorkflow,
553 > )
554
555 case nDCTransactionPolicyConflictResolveAsZombie: