transaction_impl.go ×10

Frontier kind: Code frontier

unlabeled · c_ea4619064f7b

2 tests · 3721 LOC · 157 files · introduces 0 tests · 50 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
10 ranges50 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
553 ranges3721 lines · 157 files · Browse complete extent
All tests (intent)
2 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: 50 introduced LOC across 10 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/workflow/transaction_impl.go 50 introduced LOC · 10 ranges

Open complete file

140 }
141
142 > if err := NotifyNewHistorySnapshotEvent(engine, resetWorkflowSnapshot); err != nil { transaction_impl.go
143 t.logger.Error("unable to notify workflow reset", tag.Error(err))
144 }
145 > if err := NotifyNewHistorySnapshotEvent(engine, newWorkflowSnapshot); err != nil { transaction_impl.go
146 t.logger.Error("unable to notify workflow creation", tag.Error(err))
147 }
148 > if err := NotifyNewHistoryMutationEvent(engine, currentWorkflowMutation); err != nil { transaction_impl.go
149 t.logger.Error("unable to notify workflow mutation", tag.Error(err))
150 }
151 > resetHistorySizeDiff := int64(resp.ResetMutableStateStats.HistoryStatistics.SizeDiff) transaction_impl.go
152 > newHistorySizeDiff := int64(0)
153 > if resp.NewMutableStateStats != nil {
154 newHistorySizeDiff = int64(resp.NewMutableStateStats.HistoryStatistics.SizeDiff)
155 }
156 > currentHistorySizeDiff := int64(0) transaction_impl.go
157 > if resp.CurrentMutableStateStats != nil {
158 currentHistorySizeDiff = int64(resp.CurrentMutableStateStats.HistoryStatistics.SizeDiff)
159 }
160 > return resetHistorySizeDiff, newHistorySizeDiff, currentHistorySizeDiff, nil transaction_impl.go
161 }
162
433 }
434
435 > if namespaceEntry, err := shardContext.GetNamespaceRegistry().GetNamespaceByID( transaction_impl.go
436 > namespace.ID(request.ResetWorkflowSnapshot.ExecutionInfo.NamespaceId),
437 > ); err == nil {
438 > emitMutationMetrics(
439 > shardContext,
440 > namespaceEntry,
441 > request.ArchetypeID,
442 > &resp.ResetMutableStateStats,
443 > resp.NewMutableStateStats,
444 > resp.CurrentMutableStateStats,
445 > )
446 > emitCompletionMetrics(
447 > shardContext,
448 > namespaceEntry,
449 > snapshotToCompletionMetric(
450 > namespaceState(shardContext.GetClusterMetadata(), &resetWorkflowFailoverVersion),
451 > &request.ResetWorkflowSnapshot,
452 > request.ResetWorkflowEvents,
453 > isWorkflow,
454 > ),
455 > snapshotToCompletionMetric(
456 > namespaceState(shardContext.GetClusterMetadata(), newWorkflowFailoverVersion),
457 > request.NewWorkflowSnapshot,
458 > request.NewWorkflowEvents,
459 > isWorkflow,
460 > ),
461 > mutationToCompletionMetric(
462 > namespaceState(shardContext.GetClusterMetadata(), currentWorkflowFailoverVersion),
463 > request.CurrentWorkflowMutation,
464 > request.CurrentWorkflowEvents,
465 > isWorkflow,
466 > ),
467 > )
468 > }
469 > return resp, nil
470 }
471
605 ) {
606 if workflowMutation == nil {
607 > return transaction_impl.go
608 > }
609 engine.NotifyNewTasks(workflowMutation.Tasks)
610 if len(workflowMutation.UpsertChasmNodes) > 0 ||
664
665 if workflowMutation == nil {
666 > return nil transaction_impl.go
667 > }
668
669 executionInfo := workflowMutation.ExecutionInfo
776 ) completionMetric {
777 if workflowMutation == nil {
778 > return completionMetric{shouldRecord: false} transaction_impl.go
779 > }
780
781 return completionMetric{