chasm_engine.go ×5

Frontier kind: Code frontier

unlabeled · c_a2145a2486a4

25 tests · 4811 LOC · 208 files · introduces 0 tests · 25 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges25 lines · 2 files
Tests
0 tests

Contains — complete concept membership

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

go.temporal.io/server/service/history/chasm_engine.go 22 introduced LOC · 5 ranges

Open complete file

1154 ctx context.Context,
1155 ref chasm.ComponentRef,
1156 > ) (historyi.ShardContext, api.WorkflowLease, error) { chasm_engine.go
1157 > shardContext, err := e.getShardContext(ref)
1158 > if err != nil {
1159 return nil, nil, err
1160 }
1161
1162 > consistencyChecker := api.NewWorkflowConsistencyChecker( chasm_engine.go
1163 > shardContext,
1164 > e.executionCache,
1165 > )
1166 >
1167 > lockPriority := locks.PriorityHigh
1168 > callerType := headers.GetCallerInfo(ctx).CallerType
1169 > if callerType == headers.CallerTypeBackgroundHigh ||
1170 > callerType == headers.CallerTypeBackgroundLow ||
1171 > callerType == headers.CallerTypePreemptable {
1172 lockPriority = locks.PriorityLow
1173 }
1174
1175 > archetypeID, err := ref.ArchetypeID(e.registry) chasm_engine.go
1176 > if err != nil {
1177 return nil, nil, err
1178 }
1179
1180 > var predicateErr error chasm_engine.go
1181 > var needReload bool
1182 > executionLease, err := consistencyChecker.GetChasmLeaseWithConsistencyCheck(
1183 > ctx,
1184 > nil,
1185 > func(mutableState historyi.MutableState) bool {
1186 err := mutableState.ChasmTree().IsStale(ref)
1187 needReload = errors.Is(err, consts.ErrStaleState)
1204 lockPriority,
1205 )
1206 > if err != nil { chasm_engine.go
1207 return nil, nil, err
1208 }
go.temporal.io/server/service/history/api/consistency_checker.go 3 introduced LOC · 1 range

Open complete file

169 archetypeID chasm.ArchetypeID,
170 lockPriority locks.Priority,
171 > ) (WorkflowLease, error) { consistency_checker.go
172 > return c.getWorkflowLeaseImpl(ctx, reqClock, consistencyPredicate, workflowKey, archetypeID, lockPriority)
173 > }
174
175 func (c *WorkflowConsistencyCheckerImpl) getWorkflowLeaseImpl(