execution_manager.go ×7

Frontier kind: Code frontier

unlabeled · c_2efb7d0243c4

277 tests · 3735 LOC · 165 files · introduces 0 tests · 38 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges38 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
671 ranges3735 lines · 165 files · Browse complete extent
All tests (intent)
277 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: 38 introduced LOC across 7 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/persistence/execution_manager.go 38 introduced LOC · 7 ranges

Open complete file

539 }
540
541 > xdcKVs := make(map[XDCCacheKey]XDCCacheValue, len(eventBatches)) execution_manager.go
542 > workflowNewEvents := make([]*InternalAppendHistoryNodesRequest, 0, len(eventBatches))
543 > for _, workflowEvents := range eventBatches {
544 > newEvents, err := m.serializeWorkflowEvents(shardID, workflowEvents)
545 > if err != nil {
546 return nil, nil, nil, err
547 }
548 > versionHistoryItems, _, baseWorkflowInfo, err := GetXDCCacheValue( execution_manager.go
549 > executionInfo,
550 > workflowEvents.Events[0].EventId,
551 > workflowEvents.Events[0].Version,
552 > )
553 > if err != nil {
554 return nil, nil, nil, err
555 }
556 > xdcKVs[NewXDCCacheKey( execution_manager.go
557 > definition.NewWorkflowKey(workflowEvents.NamespaceID, workflowEvents.WorkflowID, workflowEvents.RunID),
558 > workflowEvents.Events[0].EventId,
559 > workflowEvents.Events[0].Version,
560 > )] = NewXDCCacheValue(
561 > baseWorkflowInfo,
562 > versionHistoryItems,
563 > []*commonpb.DataBlob{newEvents.Node.Events},
564 > workflowEvents.Events[len(workflowEvents.Events)-1].EventId+1,
565 > )
566 > newEvents.ShardID = shardID
567 > workflowNewEvents = append(workflowNewEvents, newEvents)
568 > historyStatistics.SizeDiff += len(newEvents.Node.Events.Data)
569 > historyStatistics.CountDiff += len(workflowEvents.Events)
570 }
571 > return xdcKVs, workflowNewEvents, &historyStatistics, nil execution_manager.go
572 }
573
607 shardID int32,
608 workflowEvents *WorkflowEvents,
609 > ) (*InternalAppendHistoryNodesRequest, error) { execution_manager.go
610 > if len(workflowEvents.Events) == 0 {
611 return nil, nil // allow update workflow without events
612 }
613
614 > request := &AppendHistoryNodesRequest{ execution_manager.go
615 > ShardID: shardID,
616 > BranchToken: workflowEvents.BranchToken,
617 > Events: workflowEvents.Events,
618 > PrevTransactionID: workflowEvents.PrevTxnID,
619 > TransactionID: workflowEvents.TxnID,
620 > }
621 >
622 > if workflowEvents.Events[0].EventId == common.FirstEventID {
623 request.IsNewBranch = true
624 request.Info = BuildHistoryGarbageCleanupInfo(workflowEvents.NamespaceID, workflowEvents.WorkflowID, workflowEvents.RunID)
625 }
626
627 > return m.serializeAppendHistoryNodesRequest(request) execution_manager.go
628 }
629