execution_manager.go ×8

Frontier kind: Code frontier

unlabeled · c_a8447b3daf2f

126 tests · 3970 LOC · 165 files · introduces 0 tests · 48 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
9 ranges48 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
713 ranges3970 lines · 165 files · Browse complete extent
All tests (intent)
126 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.

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

go.temporal.io/server/common/persistence/tests/util.go 36 introduced LOC · 1 range

Open complete file

96 dbRecordVersion int64,
97 branchToken []byte,
98 > ) (*p.WorkflowMutation, []*p.WorkflowEvents) { util.go
99 > mutation := &p.WorkflowMutation{
100 > ExecutionInfo: RandomExecutionInfo(namespaceID, workflowID, eventID, lastWriteVersion, branchToken),
101 > ExecutionState: RandomExecutionState(runID, state, status, lastWriteVersion),
102 >
103 > NextEventID: eventID + 1, // NOTE: RandomMutation generates a single history event, hence NextEventID is plus 1
104 >
105 > UpsertActivityInfos: RandomInt64ActivityInfoMap(),
106 > DeleteActivityInfos: map[int64]struct{}{rand.Int63(): {}},
107 > UpsertTimerInfos: RandomStringTimerInfoMap(),
108 > DeleteTimerInfos: map[string]struct{}{uuid.New().String(): {}},
109 > UpsertChildExecutionInfos: RandomInt64ChildExecutionInfoMap(),
110 > DeleteChildExecutionInfos: map[int64]struct{}{rand.Int63(): {}},
111 > UpsertRequestCancelInfos: RandomInt64RequestCancelInfoMap(),
112 > DeleteRequestCancelInfos: map[int64]struct{}{rand.Int63(): {}},
113 > UpsertSignalInfos: RandomInt64SignalInfoMap(),
114 > DeleteSignalInfos: map[int64]struct{}{rand.Int63(): {}},
115 > UpsertSignalRequestedIDs: map[string]struct{}{uuid.New().String(): {}},
116 > DeleteSignalRequestedIDs: map[string]struct{}{uuid.New().String(): {}},
117 > UpsertChasmNodes: RandomChasmNodeMap(),
118 > DeleteChasmNodes: map[string]struct{}{uuid.New().String(): {}},
119 > // NewBufferedEvents: see below
120 > // ClearBufferedEvents: see below
121 >
122 > Tasks: map[tasks.Category][]tasks.Task{
123 > tasks.CategoryTransfer: {},
124 > tasks.CategoryTimer: {},
125 > tasks.CategoryReplication: {},
126 > tasks.CategoryVisibility: {},
127 > },
128 >
129 > Condition: rand.Int63(),
130 > DBRecordVersion: dbRecordVersion,
131 > }
132 >
133 > if branchToken == nil {
134 return mutation, nil
135 }
go.temporal.io/server/common/persistence/execution_manager.go 12 introduced LOC · 8 ranges

Open complete file

694
695 for key, info := range input.UpsertTimerInfos {
696 > blob, err := m.serializer.TimerInfoToBlob(info) execution_manager.go
697 > if err != nil {
698 return nil, err
699 }
700 > result.UpsertTimerInfos[key] = blob execution_manager.go
701 }
702
703 for key, info := range input.UpsertChildExecutionInfos {
704 > blob, err := m.serializer.ChildExecutionInfoToBlob(info) execution_manager.go
705 > if err != nil {
706 return nil, err
707 }
708 > result.UpsertChildExecutionInfos[key] = blob execution_manager.go
709 }
710
711 for key, info := range input.UpsertRequestCancelInfos {
712 > blob, err := m.serializer.RequestCancelInfoToBlob(info) execution_manager.go
713 > if err != nil {
714 return nil, err
715 }
716 > result.UpsertRequestCancelInfos[key] = blob execution_manager.go
717 }
718
719 for key, info := range input.UpsertSignalInfos {
720 > blob, err := m.serializer.SignalInfoToBlob(info) execution_manager.go
721 > if err != nil {
722 return nil, err
723 }
724 > result.UpsertSignalInfos[key] = blob execution_manager.go
725 }
726