execution_util.go ×12

Frontier kind: Code frontier

unlabeled · c_e4a6e332af48

76 tests · 4633 LOC · 170 files · introduces 0 tests · 91 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
13 ranges91 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
845 ranges4633 lines · 170 files · Browse complete extent
All tests (intent)
76 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: 91 introduced LOC across 13 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/persistence/sql/execution_util.go 88 introduced LOC · 12 ranges

Open complete file

60 }
61
62 > if err := m.updateExecution(ctx, execution_util.go
63 > tx,
64 > namespaceID,
65 > workflowID,
66 > workflowMutation.ExecutionInfoBlob,
67 > workflowMutation.ExecutionState,
68 > workflowMutation.NextEventID,
69 > lastWriteVersion,
70 > workflowMutation.DBRecordVersion,
71 > shardID,
72 > ); err != nil {
73 return serviceerror.NewUnavailablef("applyWorkflowMutationTx failed. Failed to update executions row. Erorr: %v", err)
74 }
75
76 > if err := applyTasks(ctx, execution_util.go
77 > tx,
78 > shardID,
79 > workflowMutation.Tasks,
80 > ); err != nil {
81 return err
82 }
83
84 > if err := updateActivityInfos(ctx, execution_util.go
85 > tx,
86 > workflowMutation.UpsertActivityInfos,
87 > workflowMutation.DeleteActivityInfos,
88 > shardID,
89 > namespaceIDBytes,
90 > workflowID,
91 > runIDBytes,
92 > ); err != nil {
93 return serviceerror.NewUnavailablef("applyWorkflowMutationTx failed. Error: %v", err)
94 }
95
96 > if err := updateTimerInfos(ctx, execution_util.go
97 > tx,
98 > workflowMutation.UpsertTimerInfos,
99 > workflowMutation.DeleteTimerInfos,
100 > shardID,
101 > namespaceIDBytes,
102 > workflowID,
103 > runIDBytes,
104 > ); err != nil {
105 return serviceerror.NewUnavailablef("applyWorkflowMutationTx failed. Error: %v", err)
106 }
107
108 > if err := updateChildExecutionInfos(ctx, execution_util.go
109 > tx,
110 > workflowMutation.UpsertChildExecutionInfos,
111 > workflowMutation.DeleteChildExecutionInfos,
112 > shardID,
113 > namespaceIDBytes,
114 > workflowID,
115 > runIDBytes,
116 > ); err != nil {
117 return serviceerror.NewUnavailablef("applyWorkflowMutationTx failed. Error: %v", err)
118 }
119
120 > if err := updateRequestCancelInfos(ctx, execution_util.go
121 > tx,
122 > workflowMutation.UpsertRequestCancelInfos,
123 > workflowMutation.DeleteRequestCancelInfos,
124 > shardID,
125 > namespaceIDBytes,
126 > workflowID,
127 > runIDBytes,
128 > ); err != nil {
129 return serviceerror.NewUnavailablef("applyWorkflowMutationTx failed. Error: %v", err)
130 }
131
132 > if err := updateSignalInfos(ctx, execution_util.go
133 > tx,
134 > workflowMutation.UpsertSignalInfos,
135 > workflowMutation.DeleteSignalInfos,
136 > shardID,
137 > namespaceIDBytes,
138 > workflowID,
139 > runIDBytes,
140 > ); err != nil {
141 return serviceerror.NewUnavailablef("applyWorkflowMutationTx failed. Error: %v", err)
142 }
143
144 > if err := updateSignalsRequested(ctx, execution_util.go
145 > tx,
146 > workflowMutation.UpsertSignalRequestedIDs,
147 > workflowMutation.DeleteSignalRequestedIDs,
148 > shardID,
149 > namespaceIDBytes,
150 > workflowID,
151 > runIDBytes); err != nil {
152 return serviceerror.NewUnavailablef("applyWorkflowMutationTx failed. Error: %v", err)
153 }
154
155 > if workflowMutation.ClearBufferedEvents { execution_util.go
156 if err := deleteBufferedEvents(ctx,
157 tx,
165 }
166
167 > if err := updateBufferedEvents(ctx, execution_util.go
168 > tx,
169 > workflowMutation.NewBufferedEvents,
170 > shardID,
171 > namespaceIDBytes,
172 > workflowID,
173 > runIDBytes,
174 > ); err != nil {
175 return serviceerror.NewUnavailablef("applyWorkflowMutationTx failed. Error: %v", err)
176 }
177
178 > if err := updateChasmNodes(ctx, execution_util.go
179 > tx,
180 > workflowMutation.UpsertChasmNodes,
181 > workflowMutation.DeleteChasmNodes,
182 > shardID,
183 > namespaceIDBytes,
184 > workflowID,
185 > runIDBytes,
186 > ); err != nil {
187 return serviceerror.NewUnavailablef("applyWorkflowMutationTx failed. Error: %v", err)
188 }
189
190 > return nil execution_util.go
191 }
192
go.temporal.io/server/common/persistence/sql/execution_state_non_map.go 3 introduced LOC · 1 range

Open complete file

107 workflowID string,
108 runID primitives.UUID,
109 > ) error { execution_state_non_map.go
110 >
111 > if batch == nil {
112 return nil
113 }