errors.go ×6

Frontier kind: Code frontier

unlabeled · c_8ba8423b53a9

14 tests · 4321 LOC · 184 files · introduces 0 tests · 36 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges36 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
837 ranges4321 lines · 184 files · Browse complete extent
All tests (intent)
14 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: 36 introduced LOC across 6 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/persistence/cassandra/errors.go 36 introduced LOC · 6 ranges

Open complete file

54 requestCurrentRunID string,
55 requestExecutionCASConditions []executionCASCondition,
56 > ) error { errors.go
57 >
58 > conflictRecords := []map[string]any{conflictRecord}
59 > errors := extractErrors(
60 > conflictRecord,
61 > currentRecordRunID,
62 > requestShardID,
63 > requestRangeID,
64 > requestCurrentRunID,
65 > requestExecutionCASConditions,
66 > )
67 >
68 > conflictRecord = newConflictRecord()
69 > for conflictIter.MapScan(conflictRecord) {
70 if conflictRecord["[applied]"].(bool) {
71 // Should never happen. All records in batch should have [applied]=false.
86 }
87
88 > if len(errors) == 0 { errors.go
89 // This means that extractErrors wasn't able to extract error from the conflicting records.
90 // Most likely record to update is not found in the DB by WHERE clause and is NOT in conflictRecords slice.
111 requestCurrentRunID string,
112 requestExecutionCASConditions []executionCASCondition,
113 > ) []error { errors.go
114 >
115 > var errors []error
116 > if err := extractShardOwnershipLostError(
117 > conflictRecord,
118 > requestShardID,
119 > requestRangeID,
120 > ); err != nil {
121 errors = append(errors, err)
122 }
123
124 > if err := extractCurrentWorkflowConflictError( errors.go
125 > conflictRecord,
126 > currentRecordRunID,
127 > requestCurrentRunID,
128 > ); err != nil {
129 errors = append(errors, err)
130 }
131
132 > for _, condition := range requestExecutionCASConditions { errors.go
133 > if err := extractWorkflowConflictError(
134 > conflictRecord,
135 > condition.runID,
136 > condition.dbVersion,
137 > condition.nextEventID,
138 > ); err != nil {
139 errors = append(errors, err)
140 }
141 }
142
143 > return errors errors.go
144 }
145